-->
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.  [ 6 posts ] 
Author Message
 Post subject: Looking for a rich example of Hibernate XDoclet relations
PostPosted: Sun Feb 22, 2004 8:04 am 
Regular
Regular

Joined: Sat Oct 11, 2003 11:13 am
Posts: 69
I am looking for examples of how to express relations with Hibernate XDoclet tags. I don't care for the hbm files, I only want to use XDoclet tags.

It would be good if a example would be existing with a rich Model which contains all kinds of relations. Can you tell me one?

I looked at workshop_toolset_java.tar.gz, but it does not help me. It has only a few simple relations.

It would take long to explain my problem. So I hope you can tell me a example where I can look if my problem has been solved in that rich example.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 22, 2004 9:06 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
A "relation" is something different, what you mean is "relationship". Mapping class associations with XDoclet is the same as mapping them in Hibernate XML files. Learn that first and then use the XDoclet tags 1:1 as you would use the XML elements.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 22, 2004 10:03 am 
Regular
Regular

Joined: Sat Oct 11, 2003 11:13 am
Posts: 69
Maybe someone can donate a example Domain Model with many different kinds of relationsships if you don't have one. Its easier for me to look in existing code and to learn from that than to read a reference. Thats why I ask.

Of course I can help myself the way you suggest. And I will do it this way as long as I don't find such an example Domain Model with Hibernate XDoclet tags.

Its no critique, just a question to the community.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 22, 2004 10:05 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You are part of that community. Just go ahead and add to the Wiki pages about XDoclet.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 22, 2004 11:18 am 
Regular
Regular

Joined: Sat Oct 11, 2003 11:13 am
Posts: 69
Maybe I do it when I am finished with my little domain model (Person, User, Usergroup, Address, Country, PhoneNumber, FaxNumber, Password and EmailAddress).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 23, 2004 4:34 am 
Newbie

Joined: Thu Feb 12, 2004 10:02 am
Posts: 10
Location: Ghent, Belgium
Perhaps you can go a little bit more fine-grained by adding a Name class (first, middle, last), and make it an attribute of Person


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