TrainBeaser for iPhone
The moose likes Object Relational Mapping and the fly likes Hibernate: Parent-Child Relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Hibernate: Parent-Child Relationship" Watch "Hibernate: Parent-Child Relationship" New topic
Author

Hibernate: Parent-Child Relationship

Erap Estrada
Ranch Hand

Joined: Nov 08, 2006
Posts: 92
Ive been looking on how to write the java code "query" of parent-child relationship using hibernate. Using the mapping below, how would you do it in java for a simple get all query of the class "SpecialEditionCD"?

Thanks!



SCJP with 98% by...
Erap Estrada
Ranch Hand

Joined: Nov 08, 2006
Posts: 92
PLEASE IGNORE

I found the answer.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

Originally posted by Erap Estrada:
PLEASE IGNORE

I found the answer.


Who are you? Did you say something?

Congrats on finding the issue.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: Hibernate: Parent-Child Relationship
 
Threads others viewed
can you have one-to-many join without using identifier column?
Hibernate 3 Not Loading Values Into Child Set In JUnit Test
Can't not instance class...
polymormsim related demos
special deleting (using joined-subclass in hibernate )
developer file tools