[ http://jira.andromda.org/browse/HIB-120?page=comments#action_11874 ]
     
Carlos Cuenca commented on HIB-120:
-----------------------------------

the problem is that the index column name should be an attribute of the entity, 
so if we have a namespace property for this, we should add the column in case 
it is not modelled (something like we do for Identifiers)

> 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



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to