#352- Unit Of Work : Make final instance variable of immutable Student class.
This commit is contained in:
parent
1dc143abca
commit
bf700fd995
@ -28,9 +28,9 @@ package com.iluwatar.unitofwork;
|
||||
* {@link Student} is an entity.
|
||||
*/
|
||||
public class Student {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String address;
|
||||
private final Integer id;
|
||||
private final String name;
|
||||
private final String address;
|
||||
|
||||
/**
|
||||
* @param id student unique id
|
||||
|
Loading…
x
Reference in New Issue
Block a user