Generated id fix (#3180)
* Add project for hibernate immutable article Add Event entity Add hibernate configuration file Add hibernateutil for configuration Add test to match snippets from article * Update master * Update hibernate tests Change sesssion handling Modify event creation * Remove setId method on generated id
This commit is contained in:
parent
3d0e68b4a9
commit
79cf459013
|
@ -115,7 +115,6 @@ public class HibernateImmutableIntegrationTest {
|
||||||
|
|
||||||
private static void createEventGenerated() {
|
private static void createEventGenerated() {
|
||||||
EventGeneratedId eventGeneratedId = new EventGeneratedId("John", "Doe");
|
EventGeneratedId eventGeneratedId = new EventGeneratedId("John", "Doe");
|
||||||
eventGeneratedId.setId(4L);
|
|
||||||
session.save(eventGeneratedId);
|
session.save(eventGeneratedId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue