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:



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?