NHibernate one-to-many relationship without bidirectional association -


Is my understanding correct, that the following category and table design is not possible in NHibernate:

 < Code> Public class guardian {public virtual GUID ID {get; Set; } Public Virtual ISet & lt; Child & gt; Children {receive; Set; } ...} Public Class Children {Public Virtual Guide ID {get; Set; } ...} Table Parents {ID, ...} Table child {ID, parent (not empty), ...}  

Then notice the following: < / P> <

  • One-to-many collaboration between parent and child
  • Use of an ISET
  • Anyone from child to parent Bidirectional collaboration
  • The child's parents column is not useless
  • My suffocating shock reaction was to say that it was supported but in my opinion you are right. Your option - either bidirectional or tapable ParentId columns in the hair table.

    This is an interesting thread where iyende is involved in the bug tracker for NH / Strike> (this is the previous release NH, but I think the answer is the same) / P>

    Update 5/7

    It seems that something strange is like the Nhibernate Jira (Ie no domain name) link can be found currently However, to watch NHibernate 3 out of the wild, I have not seen this question still The issue.


    Comments

    Popular posts from this blog

    c# - How to capture HTTP packet with SharpPcap -

    php - Multiple Select with Explode: only returns the word "Array" -

    php - jQuery AJAX Post not working -