Hi Gurus,
I am new to Hibernate. Please help to have a look. Thanks in advance.
Hibernate version:
3.2.3.ga
Mapping documents:
Code:
<hibernate-mapping package="objects">
<class name="OrganizationStructureObject" abstract="true">
<id name="objID">
<generator class="uuid.hex"></generator>
</id>
<property name="clientID" not-null="true"></property>
<property name="name" not-null="true"></property>
<property name="abbreviation" type="string" length="20"></property>
<property name="description"></property>
<property name="typeCode" not-null="true"></property>
<union-subclass name="OrganizationUnit" table="TA_ORG_ORG_UNIT">
</union-subclass>
<union-subclass name="Person" table="TA_ORG_PERSON">
<property name="userID"></property>
</union-subclass>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():Code:
s.save(object);
Full stack trace of any exception that occurs:
No exception
Name and version of the database you are using:
MySQL 5.
The generated SQL (show_sql=true):
No SQL genernated.
Debug level Hibernate log excerpt:
Nothing
Problems with Session and transaction handling?
not a transcation issue because other object are saved correctly. Only objects with <union-subclass> were wrong.
After save(), the UUID was created correctly. But the objects were not saved into database. NO SQL output, no any other debug level info from hibernate.
Thanks a lot for your help.