Add DTO / DAO description
This commit is contained in:
parent
45248ccb4b
commit
4da43de4f6
@ -20,7 +20,7 @@ public class TimeRecord {
|
||||
@Id
|
||||
private long id;
|
||||
@OneToOne
|
||||
private TimetrackAccount account;
|
||||
private TimetrackAccount account; // TimetrackAccount ID (Lazy)
|
||||
private Date startdate;
|
||||
private Date enddate;
|
||||
private Duration time;
|
||||
|
@ -17,7 +17,7 @@ public class TimetrackAccount {
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private long id;
|
||||
@OneToOne
|
||||
private TimetrackUser timetrackUser;
|
||||
private TimetrackUser timetrackUser; // TimetrackUser Id (Lazy) [REMOVE]
|
||||
private double revenue;
|
||||
private String name;
|
||||
private String description;
|
||||
|
@ -21,12 +21,12 @@ public class TimetrackUser {
|
||||
private long id;
|
||||
@UniqueElements
|
||||
private String username;
|
||||
private String password;
|
||||
private String password; // strip
|
||||
private String firstname;
|
||||
private String lastname;
|
||||
@OneToOne
|
||||
private Role role;
|
||||
private Role role; // Projection (String)
|
||||
@OneToMany
|
||||
private List<TimetrackAccount> timetrackAccounts;
|
||||
private List<TimetrackAccount> timetrackAccounts; // Lazy List
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user