Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Neha Deepika
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
}

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic