-->
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.  [ 1 post ] 
Author Message
 Post subject: how can i create one to many with xdoclet?
PostPosted: Sat Jul 15, 2006 4:42 pm 
Beginner
Beginner

Joined: Mon Mar 27, 2006 5:20 pm
Posts: 20
hi..
i've been trying to use xdoclet to create a sample Order and OrderLines classes where Order has a list of OrderLines

the Order has a property of orderLines which has:
/**
* @hibernate.list table = "OrderLine" name= "OrderLine" inverse="true"
* @hibernate.collection-key column = "orderNo"
* @hibernate.collection-index column ="lineNo"
* @hibernate.collection-one-to-many class = "store.OrderLine"
* @return
*/

and OrderLines class

has OrderId and Line No properties,

first of all do i have to have an id property for OrderLines? can't i use OrderNo and LineNo?

the bulid.xml keeps screaming that it can't read mapping document of the order.hbm files...


any ideas?


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

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.