Resolves checkstyle errors for trampoline twin typeobjectpattern unit-of-work value-object (#1074)
* Reduces checkstyle errors in trampoline * Reduces checkstyle errors in twin * Reduces checkstyle errors in typeobjectpattern * Reduces checkstyle errors in unit-of-work * Reduces checkstyle errors in value-object
This commit is contained in:
committed by
Ilkka Seppälä
parent
b92eb5229d
commit
f0f0143d48
@ -31,6 +31,7 @@ import java.util.List;
|
||||
*/
|
||||
public class App {
|
||||
/**
|
||||
* Program entry point.
|
||||
*
|
||||
* @param args no argument sent
|
||||
*/
|
||||
|
@ -24,6 +24,8 @@
|
||||
package com.iluwatar.unitofwork;
|
||||
|
||||
/**
|
||||
* UnitOfWork interface.
|
||||
*
|
||||
* @param <T> Any generic entity
|
||||
*/
|
||||
public interface IUnitOfWork<T> {
|
||||
@ -46,7 +48,7 @@ public interface IUnitOfWork<T> {
|
||||
*/
|
||||
void registerDeleted(T entity);
|
||||
|
||||
/***
|
||||
/**
|
||||
* All UnitOfWork operations batched together executed in commit only.
|
||||
*/
|
||||
void commit();
|
||||
|
@ -32,6 +32,8 @@ public class Student {
|
||||
private final String address;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param id student unique id
|
||||
* @param name name of student
|
||||
* @param address address of student
|
||||
|
@ -23,16 +23,14 @@
|
||||
|
||||
package com.iluwatar.unitofwork;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* {@link StudentRepository} Student database repository.
|
||||
* supports unit of work for student data.
|
||||
* {@link StudentRepository} Student database repository. supports unit of work for student data.
|
||||
*/
|
||||
public class StudentRepository implements IUnitOfWork<Student> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(StudentRepository.class);
|
||||
@ -41,6 +39,8 @@ public class StudentRepository implements IUnitOfWork<Student> {
|
||||
private StudentDatabase studentDatabase;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param context set of operations to be perform during commit.
|
||||
* @param studentDatabase Database for student records.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user