[ http://jira.andromda.org/browse/HIB-120?page=comments#action_11779 ] Chad Brandon commented on HIB-120: ----------------------------------
Carlos, Since that index is required for <list/> does it make sense to have a default column (with a namespace property) that way its valid if people don't explicitly define that tagged value? > Ordered assoc generates *.hbm.xml that violates the DTD > ------------------------------------------------------- > > Key: HIB-120 > URL: http://jira.andromda.org/browse/HIB-120 > Project: Hibernate Cartridge > Type: Bug > Reporter: Matthias Bohlen > Assignee: Carlos Cuenca > > I am working with a recent CVS snapshot (yesterday). > In my model, I have a one-to-many composition between two entities (one > Instrument composes many Quotes). The composition is marked as ordered on the > Quote side. The generated Instrument.hbm.xml file violates the DTD. The > offending part is this: > <list name="quotes" lazy="false" fetch="select" inverse="false" > cascade="all-delete-orphan"> > <key foreign-key="QUOTE_INSTRUMENT_FKC"> > <column name="INSTRUMENT_FK" sql-type="BIGINT"/> > </key> > <one-to-many class="net.marketstate.tradingmath.domain.QuoteImpl"/> > </list> > The error message of the XML plug-in in Eclipse is: > Error - The content of element type "list" must match > "(meta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)". > It seems as if an "index" or "list-index" element is *required* before the > "one-to-many" element comes. > When Hibernate loads the document, the XML parser rejects it and Hibernate > complains with "invalid mapping document". > This seems to be an issue with Hibernate 3. > Cheers... > Matthias -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel
