-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: generating xml-mapping for map with XDoclet
PostPosted: Sat Jul 08, 2006 3:02 am 
Newbie

Joined: Thu Jun 08, 2006 5:36 pm
Posts: 7
hi!

maybe i'm a blockhead, but i can't find a solution for generating the following xml-mapping-code by the use of XDoclet 1.2.3
Code:
<map
    name="lieferoptionen"
    table="MapLieferoptionenToEinkaufsartikel"
    lazy="true"
    sort="unsorted"
    cascade="all"
>
    <key
       column="id_einkaufsartikel"
       not-null="true"
    />
    <map-key-many-to-many
       column="id_lieferant"
       class="rippDatPro.model.stammdatenverwaltung.bo.Lieferant"
    />
    <one-to-many
       class="rippDatPro.model.einkauf.bo.Lieferoption"
    />
</map>

does anybody have a solution?

thanks for any help!
phoku


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 09, 2006 8:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have not validated your mapping file. In anycase, it is something like:
Code:
    * @hibernate.map
    *       cascade="all"
    *       inverse="false"
    *       lazy="true"
    *       table="MapLieferoptionenToEinkaufsartikel"
    *
    * @hibernate.collection-key
    *       column="id_einkaufsartikel"
    *
    * @hibernate.collection-index
    *       column="id_lieferant"
    *       type="long"
    *
    * @hibernate.collection-one-to-many
    *      class="rippDatPro.model.stammdatenverwaltung.bo.Lieferant"
    *


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.