-->
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: problem executing select query for 'any tag' (Help Urgent!!)
PostPosted: Thu Sep 21, 2006 5:46 am 
Newbie

Joined: Fri Sep 15, 2006 9:25 am
Posts: 3
Location: India
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.0

Mapping documents:

Full stack trace of any exception that occurs:
org.springframework.orm.hibernate.HibernateQueryException: could not resolve property: user.userID of: JoinedSubclass


Name and version of the database you are using:pl/sql


HI all,
can you please help me ....
I am using any tag with table per concrete class mapping following is the mapping:- there is a abstract class abstractClass
mapping for abstractClass.hbm.xml:-
<class Class1
...
><id name="userID"..../> </class>
<class Class2
...
><id name="userID"..../> </class>

now there is another class UtilClass which has a joined subclass in it and any tag for the above two classes like this:-
mapping for UtilClass.hbm.xml:-

<class name="UtilClass"....
<any name="user" id-type="java.lang.Long" meta-type="string">
<meta-value value="USER1" class="Class1"/>
<meta-value value="USER2" class="Class2"/>
<column name="userID"/>
<column name="user_id"/>
</any>
.......
<joined-subclass name="JoinedClass".....>
.....
..
</class>

now I need to run a query like this :-

"select joinedSubclass from JoinedSubclass where joinedSubclass.user.userid= :1232"

this query is giving me runtime exception as ---

org.springframework.orm.hibernate.HibernateQueryException: could not resolve property: user.userID of: JoinedSubclass



Read this: http://hibernate.org/42.html


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.