Generated id fix
* 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
@@ -115,7 +115,6 @@ public class HibernateImmutableIntegrationTest {
private static void createEventGenerated() {
EventGeneratedId eventGeneratedId = new EventGeneratedId("John", "Doe");
- eventGeneratedId.setId(4L);
session.save(eventGeneratedId);
}
