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…

8 Ways to use the features of your database with Hibernate
| |

8 Ways to use the features of your database with Hibernate

A common misconception when working with Hibernate is that you can only map database tables and don’t use any other database features. That’s not the case, as I want to show you in this post. You can also use lots of other features which allow you to: Map read-only database views Call database functions Execute…

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…

Lessons learned from writing and publishing a bestseller in 3 Months
|

Lessons learned from writing and publishing a bestseller in 3 Months

3 months and 1 day ago, I announced my first book Hibernate Tips – More than 70 solutions to common Hibernate problems. I published it last week, and it became an Amazon bestseller within the first day. Here is what I learned in this amazing, stressful, extremely busy and rewarding project. And if you haven’t…