-->
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: Problem with many to one association
PostPosted: Mon Sep 15, 2003 11:43 pm 
Newbie

Joined: Mon Sep 15, 2003 6:44 pm
Posts: 8
I have a class A and classes B and C which extend A.

I have another class D which is member of A and A has many to one reltionship with D. There by B and C also have many-to-one relationship with D.

When I try to access D from A, it gives CGLIB related Exception , saying that "Problem setting property values". But this happens, only if any one of the columns do not have any values in the table mapped to D. If all the column values are populated, then this doesn't happen?

Atleast from what I read from the documentation there is no configuration/ parameters in the HBM files will dictate this kind of behaviour.

As I'm new Hibernate, I think I'm missing something here.

Can anyone help????

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2003 1:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Are you sure that this isnt the typical problem where you tried to map a primitive type to a nullable database column?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2003 12:31 pm 
Newbie

Joined: Mon Sep 15, 2003 6:44 pm
Posts: 8
Thanks Gavin!

one of the fields in the databse columns was mapped as long. Changed to it java.lang.Long and it works fine now!


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.