my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes Hibernate relation. Can we have 3 one-many instances in a class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate relation. Can we have 3 one-many instances in a class. " Watch "Hibernate relation. Can we have 3 one-many instances in a class. " New topic
Author

Hibernate relation. Can we have 3 one-many instances in a class.

Neha Deepika
Greenhorn

Joined: Oct 12, 2009
Posts: 2
Can we implement this in real time? like parent table having multiple childrens.
class A{
onetomany : classB
onetomany : classC
}

classB {
manytoone :classA id
}

classC {
manytoone: classA id
}

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate relation. Can we have 3 one-many instances in a class.
 
Similar Threads
"=" oprator question
Why Exception in this code?
How to find all imported classes in java file?
java classes
Hibernate 2: Write hql query to join 3 unrelated classes