-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: what kind of Id genernator should I use?
PostPosted: Wed May 18, 2005 11:17 am 
Newbie

Joined: Tue May 17, 2005 1:48 pm
Posts: 3
Location: New York
I use oracle 9i, hibernate, Spring.

I am using hibernate 2. I try to insert student record into database by using sequence. But sometimes I got error "too large than column".
After doing some research, I realized that hibernate needs any object whenever save the object. So, it is good way, let hibernate to generate itself before saving database.
So, I tried to use UUID.HEX. But i got another error
"Object of class [org.alllearn.model.Student] with identifier []: not found
I dont know what to do.. Please help me...





Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.