-
FEATURED COMPONENTS
First time here? Check out the FAQ!
*** SOLVED ***
Hi,
I know my question is not related to ZK but since the hibernate seem to be down again...
I asking myself if the subclass need to be in the same package than the super class when using Table-Per-Subclass mapping like this ?
Thank you for help,
<hibernate-mapping> <class name="com.javalobby.tnt.hib.User" table="USER" lazy="false"> <id name="id" type="long" column="ID"> <generator class="identity" /> </id> <discriminator column="type" type="string"/> <property name="firstName" column="first_name"/> <property name="lastName" column="last_name"/> <subclass name="com.javalobby.tnt.hib.Employee" discriminator-value="employee"> <join table="employee"> <key column="id"/> <property name="jobTitle" column="job_title"/> <many-to-one name="supervisor" column="supervisor_id" not-null="true" /> </join> </subclass> </class> </hibernate-mapping>
Asked: 2009-05-15 14:06:31 +0800
Seen: 122 times
Last updated: May 15 '09