aspose file tools*
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
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.