Unidirectional 1:1 relationships with Hibernate annotations


This is mainly a note to self because I screw up every time I need to write something like that, so here’s an example for myself in the future.

Reference: java.sun.com, Tadtech

If you like this article, please share a slice of your pie and click here:

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Write a Comment

Take a moment to comment and tell me what you think. Some basic HTML is allowed for formatting.

Reader Comments

Uh i still dont understand why java dose not hove propertys and enum types like in C#, with them the DBConstants would be look much nicer and they where much more type safe.

Are there any reason why the fields private?