Hibernate Tutorial :How to generate primary key automatically using the hibernate framework

Опубликовано: 27 Ноябрь 2012
на канале: VNR Groups
4,404
12

In this video tutorial I will be showing how to generate primary key automatically using the hibernate framework .The basic way of doing this is by using the generator property.
The code is available here - http://www.vnrgroups.com/articles/jav...
In the video I will show how to use the sequence and increment generator values I will also show the use of the unsaved-value property in the video. The unsaved-value is used
when we use the save or update method saveOrUpdate() becomes save() if id value in
the object matches with the unsaved value attribute saveOrUpdate becomes save() else it becomes update().

Credit @ Mohammed Sameeruddin

For More Video Tutorials Visit : http://www.VNRgroups.com
Another Channel :    / vnrgroups  
Facebook Page :   / vnrgroups