[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
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 | order | It looks like that | OrderBean - OrderLineBean | | order-has-orderLines | One | | OrderBean | | | orderLines | java.util.Collection | | | | | orderLine-belongs_to-order | Many | | OrderLineBean | | | order | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865233#3865233 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865233 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
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 CMP fields and no relationships to other beans. The "complete" objects only load "relation" objects so that you don't get the circular references. In order to avoid the confusion for having multiple classes, I made each type (complete or relation) implement a common interface. I've not figured out any better way around this problem. If you stick to using the interfaces, it's not that messy and you still benefit from auto-generated code. Hope that helps, gary. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838783#3838783 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838783 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
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 : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838740#3838740 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838740 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
JBoss 3.2.3 - Updated my system with 3.2.4 - will try. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838736#3838736 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838736 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
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 : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838607#3838607 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838607 --- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd";> RuleSet java:/sw-dataSource-oraclePool Oracle9i false false SW_DQ_RULESET id ID name NAME description DESCRIPTION application APPLICATION applicationName APPLICATION_NAME createdDate CREATED_DATE status STATUS type TYPE forType FOR_TYPE forTypeDefault FOR_TYPE_DEFAULT screenName SCREEN_NAME profanityFilter PROF_FILTER duplicateType DUP_TYPE dupDataObjectId DUP_DATA_OBJ_ID dupDataObjectName DUP_DATA_OBJ_NAME commitType COMMIT_TYPE createdById CREATED_BY_ID createdByName CREATED_BY_NAME modifiedDate MODIFIED_DATE modifiedById MODIFIED_BY_ID modifiedByName MODIFIED_BY_NAME auditLevel AUDIT_LEVEL debuggable DEBUGGABLE scope SCOPE parentId PARENT_ID parentName PARENT_NAME superId SUPER_ID superName SUPER_NAME RuleSet-RuleSet SubsetIsAPartOfRuleSet RuleSetHasSubsets id PARENT_ID View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838583#3838583 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838583 --- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
http://java.sun.com/dtd/ejb-jar_2_0.dtd";> Generated by XDoclet RuleSet com.stalworth.dqrules.cmp.RuleSetLocalHome com.stalworth.dqrules.cmp.RuleSetLocal com.stalworth.dqrules.cmp.RuleSetCMP Container java.lang.String False 2.x RuleSetSchema id name description application applicationName createdDate status type forType forTypeDefault screenName profanityFilter duplicateType dupDataObjectId dupDataObjectName commitType createdById createdByName modifiedDate modifiedById modifiedByName auditLevel debuggable scope parentId parentName superId superName id findAllInstances Local findByName java.lang.String Local RuleSet-RuleSet SubsetIsAPartOfRuleSet Many RuleSet parent RuleSetHasSubsets One RuleSet subSets java.util.Set RuleSet * Supports dqrulescmp_client.jar View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838584#3838584 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838584 --- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Method is not a known CMP field accessor, CMR field acce
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 javax.ejb.FinderException; import javax.ejb.NoSuchEntityException; import javax.ejb.ObjectNotFoundException; import javax.ejb.RemoveException; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; import java.sql.Timestamp; //import com.stalworth.dqrules.constants.*; //import com.stalworth.fc.utils.*; /** * @ejbgen:entity * ejb-name = RuleSet * table-name = SW_DQ_RULESET * data-source-name = sw-dataSource-oraclePool * concurrency-strategy = Database * prim-key-class = java.lang.String * max-beans-in-cache = 500 * abstract-schema-name = RuleSetSchema * reentrant = False * delay-database-insert-until = ejbPostCreate * default-transaction = Supports * * * @ejbgen:jndi-name *local = com.stalworth.dqrules.cmp.RuleSetHome * * * @ejbgen:finder * signature = "java.util.Collection findAllInstances ()" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o ORDERBY o.name ASC" * * @ejbgen:finder * signature = "java.util.Collection findByName (java.lang.String name)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.name = ?1" * * @ejbgen:finder * signature = "RuleSetLocal findByMasterNameAndApplication (java.lang.String name,java.lang.String app)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.name = ?1 AND o.application = ?2 AND o.type = 0" * * @ejbgen:finder * signature = "RuleSetLocal findBySubsetName (java.lang.String name,java.lang.String pid)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.name = ?1 AND o.parentId = ?2 AND o.type <> 0" * * * @ejbgen:finder * signature = "java.util.Collection findByApplicationAndOwner (java.lang.String app,java.lang.String owner_id)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.application = ?1 AND o.createdById = ?2" * * @ejbgen:finder * signature = "java.util.Collection findByApplication (java.lang.String cid)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.application = ?1" * * @ejbgen:finder * signature = "java.util.Collection findByApplicationScope(java.lang.String cid,int sc)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.application = ?1 AND o.scope = ?2" * * @ejbgen:finder * signature = "java.util.Collection findByApplicationAndOwnerScope (java.lang.String app,java.lang.String owner_id,int sc )" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.application = ?1 AND o.createdById = ?2 AND o.scope = ?3" * * @ejbgen:finder * signature = "java.util.Collection findByOwner (java.lang.String owner_id)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.createdById = ?1" * * @ejbgen:finder * signature = "java.util.Collection findByMaster (java.lang.String app,java.lang.String owner_id,java.lang.String pId)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.application = ?1 AND o.createdById = ?2 AND o.parentId = ?3" * * @ejbgen:finder * signature = "java.util.Collection findByApplicationAndOwnerMaster (java.lang.String app,java.lang.String owner_id)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.application = ?1 AND o.createdById = ?2 AND o.type = 0" * * @ejbgen:finder * signature = "java.util.Collection findByOwnerMaster (java.lang.String owner_id)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.createdById = ?1 AND o.type = 0" * * * @ejbgen:finder * signature = "java.util.Collection findByMasterOrdered()" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.type = 0 ORDERBY o.name ASC" * * @ejbgen:finder * signature = "java.util.Collection findByMasterInteractive(java.lang.String screenName)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.type = 0 AND o.forType = 1 AND o.screenName = ?1 ORDERBY o.name ASC" * * * @ejbgen:finder * signature = "java.util.Collection findByMasterInteractiveDefault(java.lang.String screenName)" * ejb-ql = "SELECT OBJECT(o) FROM RuleSetSchema AS o WHERE o.type = 0 AND o.forType = 1 AND o.screenName = ?1 AND o.forTypeDefault = 1 ORDERBY o.name ASC" * * * @ejbgen:relation * name = RuleSet-CSRules * role-name = RuleSetHasCSRules * multiplicity = one * target-ejb = CSRuleEJB * cmr-field = cSRules * * @ejbgen:relation * name = RuleSet-SRRules * role-name = RuleSetHasSRRules * multiplicity = one * target-ejb = SRRuleEJB * cmr-field = sRRules * * @ejbgen:relation * name = RuleSet-DIRules * role-name = RuleSetHasDIRules * multiplicity = one * target-ejb = DIRuleEJB * cmr-field = dIRules * * @ejbgen:relation * name = RuleSet-S