Skip to content
Snippets Groups Projects
Commit 80f735f4 authored by Goik Martin's avatar Goik Martin
Browse files

Annotations on getter rather than field

parent 46d13841
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,9 @@ import javax.persistence.UniqueConstraint;
@UniqueConstraint(columnNames={"uidNumber"})})
public class User {
private Long id;
@Id
@GeneratedValue
private Long id;
public Long getId() {return id;}
protected void setId(Long id) {this.id = id;}
......
......@@ -19,9 +19,9 @@ import javax.persistence.UniqueConstraint;
@UniqueConstraint(columnNames={"uidNumber"})})
public class User {
private Long id;
@Id
@GeneratedValue
private Long id;
public Long getId() {return id;}
protected void setId(Long id) {this.id = id;}
......
......@@ -18,9 +18,9 @@ import javax.persistence.UniqueConstraint;
@UniqueConstraint(columnNames={"uidNumber"})})
public class User {
private Long id;
@Id
@GeneratedValue
private Long id;
public Long getId() {return id;}
protected void setId(Long id) {this.id = id;}
......
......@@ -18,9 +18,9 @@ import javax.persistence.UniqueConstraint;
@UniqueConstraint(columnNames={"uidNumber"})})
public class User {
private Long id;
@Id
@GeneratedValue
private Long id;
public Long getId() {return id;}
protected void setId(Long id) {this.id = id;}
......
......@@ -18,9 +18,9 @@ import javax.persistence.UniqueConstraint;
@UniqueConstraint(columnNames={"uidNumber"})})
public class User {
private Long id;
@Id
@GeneratedValue
private Long id;
public Long getId() {return id;}
protected void setId(Long id) {this.id = id;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment