-->
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: One problem migrating from Hibernate 3.0.5 to 3.1.3 or 3.2
PostPosted: Tue Oct 17, 2006 4:59 am 
Newbie

Joined: Tue Oct 17, 2006 4:16 am
Posts: 2
Location: Madrid Spain
Good Morning, I have very simple problem migrating hibernate from version 3.0.5, all the queries with foreing keys throw the famous [BasicPropertyAccessor.get (167)], IllegalArgumentException occurred calling getter of XXXX.id, when I turn back to version 3.0.5 without making any changes works, if I change to 3.1.3 or 3.2, fails

I don't know if this is happening to anybody, if it is let me know and will post this to JIRA

I somebody has solved, I'll be glad to know the way to fix it

Thanks for help!

Hector


Top
 Profile  
 
 Post subject: Problem detected
PostPosted: Wed Oct 18, 2006 1:01 pm 
Newbie

Joined: Tue Oct 17, 2006 4:16 am
Posts: 2
Location: Madrid Spain
There were several queries in HSQL that functioned with versions before 3.1 where the where condition accept comparations between complex objects and primitive data types, this is not permited on recent versions

That was all the problem

Ej HQL

Before 3.1
from Product as product where product.type = :type
After 3.1
from Product as product where product.type.id = :type


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.