Saturday 18 February 2012

JPA, Hibernate mapping

Small annoyance that get many people trip over is that if you have JPA entity mapping using property fields and have some mappings such as many to one at setter level you will get exception that it cannot find the entity (mapped in many to one, one to many)

so one need to stick to property mapping (@column ) and relationship maping on property level or at setter level

No comments: