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
|
|