[ http://jira.andromda.org/browse/HIB-120?page=history ]
     
Carlos Cuenca closed HIB-120:
-----------------------------

     Resolution: Fixed
    Fix Version: 3.1-RC1

Fixed with patch on HIB-130

> 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
>      Fix For: 3.1-RC1

>
> 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




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Reply via email to