Overview @ManyToOne and @OneToMany are standard mappings in Hibernate. Understanding how to use them correctly is the...
Using Custom Converter In Hibernate
Overview Imagine this scenario, you have a legacy database that store weather data. The previous developer, due to va...
Using @ColumnTransformer In Hibernate
Overview One of the lesser-known yet powerful annotations in Hibernate is @ColumnTransformer. This annotation let us ...
How To use @Formula in Hibernate
Overview From the official documentation, a Formula mapping defines a “derived” attribute (that means, no...
Understanding @Embedded and @Embeddable In Hibernate
Overview Using @Embedded and @Embeddable in hibernate can help you manage entities and their value type efficiently. ...
Understanding Candidate Keys, Primary Key, Natural Key, and Surrogate Keys in Hibernate
Overview In this article, I will delve into the concepts of candidate keys, primary keys, natural keys, and surrogate...