-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem saving composite-element
PostPosted: Wed Apr 06, 2005 4:26 am 
Newbie

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


Top
 Profile  
 
 Post subject: Re: Problem saving composite-element
PostPosted: Fri Apr 08, 2005 10:10 am 
Newbie

Joined: Tue Oct 14, 2003 5:28 am
Posts: 3
I just discovered when I call flush on session after saving whole object graph these comoposite elements are getting saved. I think the problem is with FlushBeforeCompletionEnabled=true. Any ideas what can be wrong? I checked rc1 also has this bug.

Best,
pedrow


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.