This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement OneToOne Unidirectional when revers has foreign key

 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Falks,

I think this question would be a vary common situation.

Lets say I have an existing db tables as follows,




But I want an OOP implementation as inverse of relational. That means Employee refers to an instance of Cubicle but Cubical has no reference to Employee.



How can I achieve this? (I dont want bidirectional relationship)

Open to discuss.

Thanks
 
Sergio Tridente
Ranch Hand
Posts: 329
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very Bad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic