-->
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.  [ 3 posts ] 
Author Message
 Post subject: idbag and identity column
PostPosted: Tue Feb 01, 2005 2:30 pm 
Newbie

Joined: Tue Feb 01, 2005 11:36 am
Posts: 5
Does an idbag support the idenity column yet? If so which version supports it.

When trying to update an object (which is updating a collection) I get:

Caused by: java.lang.ClassCastException
at net.sf.hibernate.type.IntegerType.set(IntegerType.java:34)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:48)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:35)
at net.sf.hibernate.collection.AbstractCollectionPersister.writeIdentifier(AbstractCollectionPersister.java:401)
at net.sf.hibernate.collection.IdentifierBag.writeTo(IdentifierBag.java:298)
at net.sf.hibernate.collection.AbstractCollectionPersister.insertRows(AbstractCollectionPersister.java:609)
at net.sf.hibernate.impl.ScheduledCollectionUpdate.execute(ScheduledCollectionUpdate.java:49)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2394)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2260)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 6:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
No, sorry.


Top
 Profile  
 
 Post subject: Re: idbag and identity column
PostPosted: Sat Jan 14, 2006 8:40 pm 
Beginner
Beginner

Joined: Sat May 01, 2004 2:44 am
Posts: 32
Location: Brisbane, Australia
sfwalter wrote:
Does an idbag support the idenity column yet? If so which version supports it.


I also am getting this problem. If identity is not supported, what is the preferred generator? The documentation shows sequence being used, however I'm not sure if sequence is supported under Informix. And if it is, does the Hibernate engine auto-create a suitable sequence by default, or should I create one in the database and configure it in the mapping?

regards,
Scott


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.