-->
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: Caveat Example Question
PostPosted: Thu Jul 26, 2007 3:13 am 
Beginner
Beginner

Joined: Wed Jul 25, 2007 6:32 am
Posts: 22
I have a question about the Caveat Native Example.

What is the most efficient way to implement a Category with Child Categories and Items?

There were 4 different strategies in the Caveat Example.

I want the possibility to put an Item in more than one Category, ordered by date added.

What is the best strategie to implement this?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 5:16 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You mean you want to _iterate_ through the items, from the point of view of a Category, in the order they were added? E.g. aCategory.getItems().iterate()?

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 5:17 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
By the way, I only read this forum once or twice a week and don't usually have the time to create tailored mappings for people. You might have a better chance of getting a useful reply in the regular User forum.

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 8:00 am 
Beginner
Beginner

Joined: Wed Jul 25, 2007 6:32 am
Posts: 22
Yes that is exactly what I want.

What is the best way to implement this?

What kind of strategie?


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.