Hibernate Tips: What’s the difference between @Column(nullable = false) and @NotNull

Hibernate Tips: What’s the difference between @Column(nullable = false) and @NotNull

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 post a comment below. Question: One of my entity attributes shall not be null. There seem to be 2 different ways to ensure that….

Hibernate Tips: How to Customize a Constructor Expression for Different Subclasses

Hibernate Tips: How to Customize a Constructor Expression for Different Subclasses

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 post a comment below. Question: Last week, one of my coaching clients asked an interesting question: He used the InheritanceType.SINGLE_TABLE to map an inheritance hierarchy…

Hibernate Tip: Map a bidirectional one-to-one association with shared composite primary key
|

Hibernate Tip: Map a bidirectional one-to-one association with shared composite primary key

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 post a comment below. Question: Today’s question was inspired by a question I answered on StackOverflow:How can I map a bidirectional one-to-one association that…