| Joined: Tue Oct 14, 2003 5:28 am
 Posts: 3
 | 
				
					| I have a problem saving composite-element objects. Below is a mapping I use from my parent class. No exception is thrown and when I enabled ShowSql also no insert is generated for my composit-elements only for parent class.
 <set name="properties" table="JOB_PROPERTIES" lazy="true" inverse="false" cascade="all" sort="unsorted" optimistic-lock="true" embed-xml="true">
 <key column="JOB_ID" on-delete="noaction" />
 <composite-element class="jobs.Property">
 <property name="name" type="java.lang.String" update="true" insert="true" access="property" column="NAME" not-null="false" unique="false" optimistic-lock="true" lazy="false" />
 <property name="value" type="java.lang.String" update="true" insert="true" access="property" column="VALUE" not-null="false" unique="false" optimistic-lock="true" lazy="false" />
 </composite-element>
 </set>
 
 I'm using latest Hibernate 3.0 final release. With rc1 I didn't have this problem. The only difference in my code I enable auto session close and auto flush via JMX MBean.
 
 Best,
 pedrow
 
 
 |  |