Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Unidirectional & Bi directional

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guy's does any one understand what is the diffrence between Unidirectional and Bidirectional ??

Just say
ONE - ONE Bidirectional ? < ------ >
ONE - ONE Unidirectional ? --------->

Please help me I wan't to clear my doubts.

In My openion I didn't see any diffrence in coding. Is there any meaning. I feel (can see)it will useful for <cascade-delete/>

Tell me your Ideas
------------------

:roll:
 
Dilip Gamage
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one ??
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Geez ... what's the difference between a bicycle and a unicycle? One has two wheels, one has one wheel. Bi = 2 and Uni = 1. Therefore, a bidirectional relationship must have two directions, easily labeled 'to' and 'from''. A unidirectional relationship likewise has one direction.
 
Dilip Gamage
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean it can't call back word ? But there was a question kathy she calls it back
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ONE - ONE Bidirectional ? < ------ >
ONE - ONE Unidirectional ? --------->



Here is my understanding:
Suppose there are two beans A and B.
Bidirectional means: A can get B, and B can get A too;
In A: getB();
In B: getA();
Unidirectional means: A can get B, but B can't get A.
In A: getB();
In B: no method to get A.
 
Dilip Gamage
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeh yeh thats the thing i want to know. But some occation they use it both way Thanks X.LI
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic