|
Tony, You can use your existing primary key and should define it as a primary key using alter table particularly if you are going to generate your entity beans. Given a choice you should use a synthetic ID that can be generated by Hibernate of some form of identity/sequence column. If you use an identity column, you should also use a 3.0 JDBC driver (JDK 1.4) so that Hibernate can efficiently pick up the key after insert. David Morris >>> tony.richardson@xxxxxxxxxxxx 02/12/05 9:56 AM >>> I'm taking a look at Hibernate to replace our existing data access layer, and as I look at the pile of books I have front of me one question continues to come up. Is the unique retrieval id required or can I just the primary keys on my database tables? If anyone has any opinions on Hibernate I would love to here them as well. I can be contacted off line at trichardson@xxxxxxxxxxx -- Thanks, Tony Richardson
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.