You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Hayes, Reggie D." <RE...@saic.com> on 2003/08/05 16:53:45 UTC
OJB XDoclet generating torque table schema
I am using the xdoclet ojb module to generate an ojb repository and a torque
schema. The problem that I am running into is that the foreign key
reference constraints are not generated for collections. My persistent
collections are only implementing 1:n associations. The foreign key
reference constraints are generated for references. Am I doing something
wrong?
/**
* The collection of BioAssays for this Experiment.
*
* @ojb.collection
element-class-ref="gov.nih.niehs.cebs.domain.BioAssay.BioAssay"
*
collection-class="gov.nih.niehs.cebs.domain.Interface.HasBioAssays$BioAssays
_list"
*
foreignkey="experimentId"
*
auto-update="true"
*
auto-delete="true"
*
orderby="id=DESC"
*/
Re: OJB XDoclet generating torque table schema
Posted by Thomas Dudziak <to...@first.fhg.de>.
The tags look ok, however you only supplied the collection comment. This
might sound trivial but is there an experimentId field (that also has an
ojb.field tag) in the element class or one of its subclasses ? Do you
get any errors from the xdoclet ojb module ? (try ant -v to see some
more output)
If its none of the above you could send me the source or a comparable
example so I can check it.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org