-
Recent Posts
Archives
Recent Comments
Category Archives: hibernate
Unitils: a better Gienah?
On my current project, I am using Gienah as a way to integrate JUnit tests with Spring. I am rather pleased with the result, keeping my unit tests quite clean. I just heard today about Unitils, a more ambitious tool. … Continue reading
Test Driven Design and Data Access Layer
I am currently writing the Data Access Layer of a Java project using Hibernate and I want to apply TDD on my work. The part that is concerned with the database is the mapping of objects on the database schema, … Continue reading
Posted in hibernate, java, tdd, test
3 Comments
Hibernate: so, the identifier field *is* mandatory after all!
Is it obvious to everyone that an identifier is mandatory in Hibernate? I actually thought that Hibernate generated some kind of internal identifier for classes that do not specify one. The documentation says: saveOrUpdate() does the following: […] if the … Continue reading