-->
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: Hibernate Identity Generation Exception
PostPosted: Wed Oct 11, 2006 6:31 pm 
Newbie

Joined: Thu Aug 17, 2006 10:18 am
Posts: 9
We are using the "native" generator strategy for generating the Id of a particular java class in the database. This works only for Java types like Integer, Long, Short and String. When we put a UserType as the id type we get an exception as the one below

org.hibernate.id.IdentifierGenerationException: this id generator generates long, integer, short or string

<id name="id" type="TaskIDUserType">
<column name="id" />
<generator class="native" />
</id>

My question is does hibernate not support UserTypes for id generation ? Is there a request for having this included in the future ? since we can read using the UserType but not generate the Id using the UserType. Appreciate all your responses.


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.