Skip to content

Commit 8a075e5

Browse files
committed
HHH-19846 - Drop JUnit 4 usage
1 parent fdef0af commit 8a075e5

File tree

23 files changed

+1065
-1361
lines changed

23 files changed

+1065
-1361
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/naturalid/Citizen.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
package org.hibernate.orm.test.annotations.naturalid;
66
import jakarta.persistence.Entity;
7-
import jakarta.persistence.GeneratedValue;
87
import jakarta.persistence.Id;
98
import jakarta.persistence.ManyToOne;
109

@@ -18,7 +17,6 @@
1817
@NaturalIdCache
1918
public class Citizen {
2019
@Id
21-
@GeneratedValue
2220
private Integer id;
2321
private String firstname;
2422
private String lastname;
@@ -28,6 +26,16 @@ public class Citizen {
2826
@NaturalId
2927
private String ssn;
3028

29+
public Citizen() {
30+
}
31+
32+
public Citizen(Integer id, String firstname, String lastname, State state, String ssn) {
33+
this.id = id;
34+
this.firstname = firstname;
35+
this.lastname = lastname;
36+
this.state = state;
37+
this.ssn = ssn;
38+
}
3139

3240
public Integer getId() {
3341
return id;

0 commit comments

Comments
 (0)