mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 20:15:47 +00:00
#352- Unit Of Work : Make final instance variable of immutable Student class.
This commit is contained in:
1 parent
1dc143abca
commit
bf700fd995
1 file changed
+3
-3
@@ -28,9 +28,9 @@ package com.iluwatar.unitofwork;
|
|||||||
* {@link Student} is an entity.
|
* {@link Student} is an entity.
|
||||||
*/
|
*/
|
||||||
public class Student {
|
public class Student {
|
||||||
private Integer id;
|
private final Integer id;
|
||||||
private String name;
|
private final String name;
|
||||||
private String address;
|
private final String address;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param id student unique id
|
* @param id student unique id
|
||||||
|
|||||||
Reference in new issue
Block a user