Learn about JPA Query Language

Normally, when we need to manipulate any database we have to write SQL based on the information of the columns, the tables in the database, and possibly for different database types, the syntax of the SQL statement is different. To remove these drawbacks, you guys… Read More

Learn about @GeneratedValue annotation in JPA – Part 2

This tutorial is continued part 1. The next strategy we want to talk is the GenerationType.SEQUENCE strategy You declare this strategy in the Clazz entity as follows:

Similar to GenerationType.TABLE strategy, GenerationType.SEQUENCE strategy also depends on the value of “hibernate.id.new.generator_mappings” property in the JPA… Read More