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

Hibernate and Spring framework

I introduced to you all basic about Hibernate, so you will know in Hibernate, an object implements the SessionFactory interface, which will hold information related to the database connection, the entity to manipulate the database. It’s better if this object is managed by Spring, when… Read More