Hibernate Tips: How to delete child entities from a many-to-one association
|

Hibernate Tips: How to delete child entities from a 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 for a future Hibernate Tip, please leave a comment below. Question: My domain model contains a many-to-one association in which the child entity can’t exist without its parent. Can Hibernate…

How To Implement Automatic Database Updates By Integrating Liquibase

How To Implement Automatic Database Updates By Integrating Liquibase

After I talked about how to add Liquibase to your project and how to update your database together with your application code, it’s time to integrate Liquibase into your application so that you can execute the update automatically. Special thanks to Carlos Feria who asked for this post in a comment. The automatic execution of the…

Hibernate Tips: How to use a timestamp for versioning and optimistic locking

Hibernate Tips: How to use a timestamp for versioning and optimistic locking

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 for a future Hibernate Tip, please leave a comment below. Question: My table model uses a timestamp instead of a numeric column for versioning. How can I use this column…