• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is unidirection?one to many. relation?

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello friends

i am new to ... hibernate

can any tel me what is unidirection.. in hibernate and also..

what is one to many.. i need explanations with good and simple example..

i dont what the.. hibernate... material..

i need more good one please friends..

this urgent friends bye

Thanks .. you very much....
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"unidirectional" refers to an association between two objects that is only one way. So, for example, if a Person object has an Address object, but an Address object doesn't have a Person object, that association would be one way, or unidirectional.

"one to many" is a description of the multiplicity of a relationship between two objects. The term itself is not unique to Hibernate, you'll see it in ER modelling and UML amoungst other models. It describe a relationship where our Person object can have many addresses, but an addres may only have one Person object. If you are going to work with relational databases at all, I'd recommend hunting out some material on this sort of concept. Have a google for "ER modelling" and you'll get lots of articles.
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic