Hibernate Tips: How to select a specific subclass from an inheritance hierarchy
|

Hibernate Tips: How to select a specific subclass from an inheritance hierarchy

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: I have a many-to-many association to the superclass of an inheritance hierarchy. How can I select only a certain…

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…

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…