I bumped into some strange thing in ojb xdoclet:
I need mapping wich gave me Armin: interface descriptor has field descriptors but doesn't have table attribute
class descriptor has both the same field descriptors and table attribute
but if I specify *generate-table-info="true" in interface descriptor
*xdoclet generates field descriptors and table attribute too
if I specify *generate-table-info="false" in interface descriptor
*xdoclet doesn't generate table attribute but it doesnt generate field descriptors too
Armin Waibel wrote:
I saw ReferenceTest test worked with OJB 1.0.1 too, with a different mapping of the interface. Did you tried to declare the reference-descriptor and fk-field in the interface class mapping too?
e.g. Class RefObject is an interface
<class-descriptor class="org.apache.ojb.broker.ReferenceTest$RefObject">
<extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjA"/>
<extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjB"/>
<extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjC"/>
<field-descriptor name="fkId" column="FK_REF" primarykey="false" jdbc-type="INTEGER" access="anonymous" />
<reference-descriptor name="ref" class-ref="org.apache.ojb.broker.ReferenceTest$RefObject" proxy="false" auto-retrieve="true" auto-update="true" auto-delete="false"> <foreignkey field-ref="fkId"/> </reference-descriptor>
</class-descriptor>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
