-->
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.  [ 2 posts ] 
Author Message
 Post subject: net.sf.hibernate.id.IdentifierGenerationException:
PostPosted: Wed Jun 09, 2004 5:07 pm 
Newbie

Joined: Tue Jun 01, 2004 4:07 pm
Posts: 2
Hi folks!

I'm implementing a java Web Application that store it's data on a MySql database. For the implementation, I'm using eclipse and the hibernate synchornizer plugin.

I already got success accessing the tables on the database.

But I had problems when tried to save to a specif table...
This is a User table that has some attributes like: username, firstname, lastname, email, etc.
The username attribute is the table primary key and is a String type attribute.

I created a bean for this user, setting up the required information.

At the moment that I tried to save the Bean, the hibernate returned this exception:
net.sf.hibernate.id.IdentifierGenerationException: this id generator generates long, integer, short

Do you know what is happening?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 09, 2004 8:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
use generator="assigned" if you don't want the id to be autogenerated. Bad design though.


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

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.