tricks in hibernate id selection

G

gk

I see there are increment , identity or sequence , hilo or seqhilo
, assigned , foreign etc are identity selector in hibernate .

can anybody explain how to select an id out of this above list for
an application ?
 
R

Robert Klemme

I see there are increment , identity or sequence , hilo or seqhilo
, assigned , foreign etc are identity selector in hibernate .

can anybody explain how to select an id out of this above list for
an application ?

If you are referring to id generation: I prefer "native" as this is most
portable.

<id name="id" unsaved-value="null" column="foo_id">
<generator class="native"/>
</id>

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top