-->
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: Exception while executing query related to inheritence
PostPosted: Thu Jul 01, 2004 2:41 am 
Beginner
Beginner

Joined: Thu Feb 26, 2004 6:59 am
Posts: 47
Location: Gurgaon, India
I have implemented two classes

B and C implements A(interface)

schema is like

<class name="A" Table="A">
<id name="ID">
<generator class="native"/>
</id>
<joined-subclass name="B" Table="B" >
<key column="ID">
<property name=""name"/>
</joined-subclass>
<joined-subclass name="C" Table="C" >
<key column="ID">
<property name=""name"/>
</joined-subclass>
</class>

table created by it
A Columns ID.
C Columns ID, Name.
B Columns ID, Name.

C or B can be easily saved in database

but when I execute "From A"

it gives exception coult not execute query
it is actually creating wrong SQL query internally I see it by enabling logger prints
what Should I do
Waiting for reply
Thanks
Parmod


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.