wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes hibernate and ids Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hibernate and ids" Watch "hibernate and ids" New topic
Author

hibernate and ids

Kalpesh Soni
Ranch Hand

Joined: Jan 02, 2001
Posts: 312
I am trying to use hibernate with tomcat and mysql
What id generation method should I use ?
How should I use connection pool ?


Test 094, IBM WID 6.0 cert
SCJP 1.2
SCBCD 1.3 Beta
SCWCD 1.4 Beta
SCMAD Beta
SCDJWS Beta

KS
Ariel Araza
Greenhorn

Joined: Apr 15, 2004
Posts: 4
Originally posted by Kalpesh Soni:
I am trying to use hibernate with tomcat and mysql
What id generation method should I use ?
How should I use connection pool ?

I suggest you use native, and as for the pool you can use the standard DBCP pooling.
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

I am using the native id generation. Works fine for me!
Pho


Regards,

Pho
Kalpesh Soni
Ranch Hand

Joined: Jan 02, 2001
Posts: 312
yeah it works
but do I have any other choice ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: hibernate and ids
 
Similar Threads
Jamon and DB Monitoring
confusion?
Debug Error with JPA/Hibernate
does hibernate require any container
Data Access Layer Best Practices