1.

Which element of hbm.xml is used to automatically generate the primary key values?

Answer»

The <generator> element within the id element is used to automatically generate the primary key values. Set the class attribute of the generator element is set to native to let hibernate pick up either identity, sequence or hilo algorithm to create primary key depending upon the capabilities of the underlying database.



Discussion

No Comment Found