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

Joined: Mon Mar 27, 2006 5:20 pm
Posts: 20
hi..

i have 2 classes Order, and OrderLines.

Order Lines have an OrderId and OrderLine properties

the Order class has property 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
*/

the build.xml keeps screaming it can't read the mapping file of the order.hbm.xml


Top
 Profile  
 
 Post subject: Re: how can i create one to many with xdoclet?
PostPosted: Tue Jul 18, 2006 4:12 pm 
Newbie

Joined: Fri Nov 05, 2004 11:09 am
Posts: 6
emaayan wrote:
hi..

i have 2 classes Order, and OrderLines.

Order Lines have an OrderId and OrderLine properties

the Order class has property 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
*/

the build.xml keeps screaming it can't read the mapping file of the order.hbm.xml


I have something similar, so hopefully may work for you too, I have changed yours as below:
/**
* @hibernate.list
* @hibernate.key column = "orderNo"
* @hibernate.index column ="lineNo"
* @hibernate.one-to-many class = "store.OrderLine"
*/

Reply if it works for you.


Top
 Profile  
 
 Post subject: thanks but before i do that , i'm using doclipse.
PostPosted: Thu Jul 20, 2006 8:45 am 
Beginner
Beginner

Joined: Mon Mar 27, 2006 5:20 pm
Posts: 20
when i tried autocomplete i couldn't find @hibernate.one-to-many, so i assumed it's not valid in that context.

is it a tool problem? does each hibernate xdolet correspond to an element?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 12:13 pm 
Newbie

Joined: Fri Nov 05, 2004 11:09 am
Posts: 6
Probably you are using an older version of XDoclet.

The latest XDoclet 2 has these hibernate tags.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.