Hey all,
I have a theoretical question.i fail to see how nhibernate makes life
easy for me by mapping relations.

Every way i look at it, it seems that it poses more work to the
programmer.
for example taking directly from the documentation:

http://www.hibernate.org/hib_docs/nhibernate/html/example-parentchild.html

Parent p = (Parent) session.Load(typeof(Parent), pid);
Child c = new Child();
c.Parent = p;
p.Children.Add(c);
session.Save(c);

1. I need to maintain both edges of the link myself,
2. i need to worry about cascade action
3. i need to worry about the extra sql that is generated if i do not
use inverse=true
4. i need to worry about when to use lazy loading.
5. in many to many relations, i need to worry twice as much.

so is the only advantage in the querying? and if so, i imagine that
most of the queries would be done in HQL and i could just do a join
for the relations by hand.


i feel im missing a point.

thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to