thank you very much for your reply. since i'm relying heavily on xdoclet right now (it generates nearly 75 classes and config files for me), i've decided to remove the DVC and flatten the class into individual fields that all entity beans inherit from. it isn't terribly messy either, since all my entity beans just extend a base class, so i'm happy with it.
maybe a note should be placed in the paydocs regarding this. i looked through them again, and didn't see anything about the <dependent-value-class> element being required. thank you again for your help! Ryan -----Original Message----- From: Alex Loubyansky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:17 AM To: Sonnek, Ryan Subject: Re[2]: [JBoss-user] cmp composite field problems Hello Ryan, I don't know whether it's possible to generate with xdoclet but, AFAIK, dependent-value-class declaration is required. alex Tuesday, January 07, 2003, 5:15:19 PM, you wrote: SR> no i haven't. i can't seem to find a way to generate the SR> <dependent-value-classes> element using xdoclet-1.2-b2. also, reading SR> through the pay docs, they show an example (listing 3-7) that does not use SR> the <dependent-value-class>. instead, they only override the column name SR> within the <cmp-field>. SR> is it required to have the <dependent-value-class> element? can it be SR> generated from xdoclet? SR> Ryan SR> -----Original Message----- SR> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]] SR> Sent: Tuesday, January 07, 2003 5:14 AM SR> To: Sonnek, Ryan SR> Subject: Re: [JBoss-user] cmp composite field problems SR> Hello Ryan, SR> have you also declared <dependent-value-class> element for the class SR> that represents audit? SR> alex SR> Monday, January 06, 2003, 10:24:42 PM, you wrote: SR>> i'm working with a CMP composite field using jboss 3.0.4 and oracle 8i. SR>> i've gone through the paydoc's several times, and can't pinpoint where SR> this SR>> is wrong. my audit object has 4 fields, 2 string and 2 date. all have SR>> correct getters/setters. the cmp bean has a getter and setter for the SR> Audit SR>> object. the sql that is generated is trying to work with the audit SR> object SR>> as if it's a blob, and not 4 seperate fields. SR>> any direction would be appreciated. i've included a dump from the SR>> server.log along with my relevent ejb-jar.xml and jbosscmp-jdbc.xml. SR>> Ryan SR>> Ryan J. Sonnek SR>> Brown Printing Company SR>> J2EE Application Developer SR>> 507.835.0803 SR>> <mailto:[EMAIL PROTECTED]> SR>> server.log (cleaned up for readibility) SR>> -------------------------------------------------- SR>> Executing SQL: INSERT INTO BCS_DEPARTMENT (department_num, name, SR>> description, audit) VALUES (?, ?, ?, ?) SR>> Set parameter: index=1, jdbcType=INTEGER, value=NULL SR>> Set parameter: index=2, jdbcType=VARCHAR, value=department 2 SR>> Set parameter: index=3, jdbcType=VARCHAR, value=department description2 SR>> Set parameter: index=4, jdbcType=BLOB, SR>> SR> value=username:null;processCode:DepartmentBean.create;dateCreated:null;dateU SR>> pdated:null SR>> Could not create entity SR>> ejb-jar.xml (included only the relevent CMP object) SR>> SR> --------------------------------------------------------------------------- SR>> <entity > SR>> <description><![CDATA[Abstract class for Departments.]]>>></description> SR>> <display-name>Department</display-name> SR>> <ejb-name>Department</ejb-name> SR>> SR> <local-home>com.bpc.bcs.interfaces.DepartmentLocalHome</local-home> SR>> <local>com.bpc.bcs.interfaces.DepartmentLocal</local> SR>> <ejb-class>com.bpc.bcs.ejb.DepartmentCMP</ejb-class> SR>> <persistence-type>Container</persistence-type> SR>> <prim-key-class>java.lang.Integer</prim-key-class> SR>> <reentrant>false</reentrant> SR>> <cmp-version>2.x</cmp-version> SR>> <abstract-schema-name>Department</abstract-schema-name> SR>> <cmp-field > SR>> <description><![CDATA[gets this department id.]]>></description> SR>> <field-name>departmentID</field-name> SR>> </cmp-field> SR>> <cmp-field > SR>> <description><![CDATA[gets the name of this department.]]>>></description> SR>> <field-name>name</field-name> SR>> </cmp-field> SR>> <cmp-field > SR>> <description><![CDATA[gets the description of this department.]]>>></description> SR>> <field-name>description</field-name> SR>> </cmp-field> SR>> <cmp-field > SR>> <description><![CDATA[Gets the database audit information SR> for this bean.]]>>></description> SR>> <field-name>audit</field-name> SR>> </cmp-field> SR>> <primkey-field>departmentID</primkey-field> SR>> <resource-ref > SR>> <res-ref-name>jdbc/bcs/bcsuser</res-ref-name> SR>> <res-type>javax.sql.DataSource</res-type> SR>> <res-auth>Container</res-auth> SR>> </resource-ref> SR>> <query> SR>> <query-method> SR>> <method-name>findAll</method-name> SR>> <method-params> SR>> </method-params> SR>> </query-method> SR>> <ejb-ql><![CDATA[SELECT OBJECT(d) from Department d]]>></ejb-ql> SR>> </query> SR>> <!-- Write a file named ejb-finders-DepartmentBean.xml if you SR> want SR>> to define extra finders. --> SR>> </entity> SR>> jbosscmp-jdbc.xml (only included relevent CMP object) SR>> --------------------------------------------------------------- SR>> <entity> SR>> <ejb-name>Department</ejb-name> SR>> <table-name>bcs_department</table-name> SR>> <cmp-field> SR>> <field-name>departmentID</field-name> SR>> <column-name>department_num</column-name> SR>> </cmp-field> SR>> <cmp-field> SR>> <field-name>name</field-name> SR>> <column-name>name</column-name> SR>> </cmp-field> SR>> <cmp-field> SR>> <field-name>description</field-name> SR>> <column-name>description</column-name> SR>> </cmp-field> SR>> <cmp-field> SR>> <field-name>audit</field-name> SR>> <property> SR>> <property-name>audit.username</property-name> SR>> <column-name>audit_id</column-name> SR>> </property> SR>> <property> SR>> SR> <property-name>audit.processCode</property-name> SR>> <column-name>audit_process_code</column-name> SR>> </property> SR>> <property> SR>> SR> <property-name>audit.dateCreated</property-name> SR>> <column-name>audit_insert_dtm</column-name> SR>> </property> SR>> <property> SR>> SR> <property-name>audit.dateUpdated</property-name> SR>> <column-name>audit_dtm</column-name> SR>> </property> SR>> </cmp-field> SR>> <!-- merge point: jbosscmp-jdbc-load-{0}.xml --> SR>> </entity> ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user