I've finally found the problem, I didn't take in account that the Order -
OrderLine relationship was bidirectional. Here is the ejb-jar.xml that works,
I've just added the
cmr-field
| cmr-field-nameorder/cmr-field-name
| /cmr-field
It looks like that
ejb-relation
|
3.2.4 fixed it - Thanks
There is still one problem . The Value Object code generated by xdoclet has a
rentrant method detected error when setting the parent. If i set the reentrant = true
then the server is in infinite loop
View the original post :
I had the same issue when I converted my code from the old data-object to
value-objects. The only way I found around this was to make 2 value objects for each
bean. One that is a complete object and contains the relationships to other beans.
Another that is a relation object that has only
Which JBoss version? I guess, this is because you also have
| abstract public void setParent(com.stalworth.dqrules.vobj.RuleSetValue val);
|
This should be fixed in 3.2.4 release. Try renaming value object setter if you are
using an earlier version.
View the original post :
JBoss 3.2.3 - Updated my system with 3.2.4 - will try.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3838736#3838736
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838736
Bean Src Code:
===
package com.stalworth.dqrules.cmp;
import java.io.Serializable;
import java.util.Set;
import javax.ejb.CreateException;
import javax.ejb.DuplicateKeyException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import
?xml version=1.0 encoding=UTF-8?
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN
http://java.sun.com/dtd/ejb-jar_2_0.dtd;
ejb-jar
![CDATA[blah]]
display-nameGenerated by XDoclet/display-name
enterprise-beans
!-- Session Beans --
!--
?xml version=1.0 encoding=UTF-8?
!DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.2//EN
http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd;
jbosscmp-jdbc
!--preferred-relation-mappingrelation-table/preferred-relation-mapping--
enterprise-beans
!--
To add