Hibernate Tips: How to exclude unchanged columns from generated update statements

Hibernate Tips: How to exclude unchanged columns from generated update statements

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question you like me to answer, please leave a comment below. Question: Hibernate always updates all database columns mapped by my entity, even the ones that I didn’t change. How can…

Hibernate Tips: How to validate that an entity attribute value is within a defined range

Hibernate Tips: How to validate that an entity attribute value is within a defined range

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question you like me to answer, please leave a comment below. Question: The value of one of the attributes of my entity has to be within a defined range. What is…

Hibernate Tips: How to map a bidirectional many-to-one association
|

Hibernate Tips: How to map a bidirectional many-to-one association

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question you like me to answer, please leave a comment below. Question: My table model contains a many-to-one association. How do I model it with Hibernate so that I can navigate…