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:
Walter Gómez 2017-12-02 10:04:30 -06:00 committed by Eugen
parent 3d0e68b4a9
commit 79cf459013
1 changed files with 0 additions and 1 deletions

View File

@ -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);
} }