At least one Hibernate resolution

Okay, one of the issues I identified is my fault. I can use JavaBeans that don’t have id fields as long as I leave the “name” attribute out of the <id> element in the mapping document. The reason I was throwing an exception is that I was still using the same test cases from before, and one of them tried to retrieve an element by id. Duh.

Okay, at least that makes sense.

By Ken Kousen

I am a Java Champion and the author of the books "Kotlin Cookbook", (O'Reilly Media), "Modern Java Recipes" (O'Reilly Media), "Gradle Recipes for Android" (O'Reilly Media), and "Making Java Groovy" (Manning), as well as over a dozen video courses at Safari Books Online. I'm a regular member of the No Fluff, Just Stuff conference tour and have given talks all over the world. Through my company, Kousen IT, Inc, I've taught training courses to and worked with thousands of developers.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.