-->
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: CompositeIds and getHibernateTemplate().get(x.class, id);
PostPosted: Mon Feb 28, 2005 5:07 am 
Newbie

Joined: Fri Feb 25, 2005 2:49 am
Posts: 3
Hi,
I am using Spring and hibernate together.
I have a problem with my composite keys and getHibernateTemplate.get(xx.class,
id) method.
When i call getHibernateTemplate().get(myclass.class, id) method with one of my
ids, i take a CgLib error "exception setting property value with CGLIB (set
hibernate.cglib.use_reflection_optimizer=false for more info) getter of ...?;

Is there any way to get table which has two primary key and labelled with
composite Ids?

Thanks lot,
Serkan


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 6:00 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
The exception probably occures because of primitive variable type trying to set a NULL object from db.

Regarding composite-id: http://www.hibernate.org/hib_docs/refer ... ompositeid
But you probably read that.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 6:07 am 
Newbie

Joined: Fri Feb 25, 2005 2:49 am
Posts: 3
Ok i have already read them.
But i am not sure how to use getHibernateTemplate method.
I have two ids, which one of them should be a parameter as an id for my method?


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.