Ok thanks for your help. But the Problem on this solution is, that NHibernate would fire the select per object.
2009/7/28 Belvasis <[email protected]> > Ah ok...maybe this could help http://blog.tieredsolutions.com/?p=527 > > 2009/7/28 Armin Landscheidt <[email protected]> > > Yes but this are two different things. In my case I want just view a value >> which were written from a completly different part of the application. If i >> do this with many-to-one my class looks like >> >> class Person{ >> public string Name{get;set;} >> public string Title{ get{ return title.text} } >> private Title title; >> } >> >> otherwise it would look like >> >> class Person{ >> public string Name{get;set;} >> public string Title{ get; private set; } >> } >> >> I need this in cases where I have another view on the data. So the >> objectmodel can be different from other parts in the Application. The other >> parts need to know about the Title class in this point you are right. >> >> 2009/7/28 Belvasis <[email protected]> >> >> And what will you do if one want to add new titles or edit existing >>> titles? I think then you'll need a Title class >>> otherwise you could use a simple title field in the person table. >>> >>> 2009/7/28 Saijado <[email protected]> >>> >>> >>>> Hallo, >>>> >>>> when I saw the new <join/> feature in the realeasenotes of NH2.0 I >>>> thought that I can map columns with a many-to-one assosiation from >>>> other tables direct into a property in my class but this is for one-to- >>>> one only. This would be very helpfull for somthing like a title of a >>>> person. Now I need a Title-class to map this for one string property. >>>> >>>> Is there any other way to map a property direct to another table? >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
