Which one of the list ?
Sensor
{
String Name
IList<PhysicalInstrument> PhyiscalInstruments
PhysicalInstrument TheFirst{ get{return PhyiscalInstruments[0];}}
}
<component name="TheFirst" class="PhysicalInstrument" access="readonly">
<property......
</component>
from Sensor s where s.TheFirst.From > :pMinDate
2009/10/8 Yves Goeleven <[email protected]>
>
> Hi,
>
> I’m in a scenario where I have a denormalized table in the database,
> where on the other hand in the domain model I’m more in a scenario of
> a root object with children.
>
> The object model looks like:
>
> Sensor
> {
> String Name
> …
> IList<PhysicalInstrument> PhyiscalInstruments
> }
>
> PhyiscalInstrument
> {
> DateTime From
> DateTime To
> ….
> }
>
>
> The Table model looks like this:
>
> Sensors
> STRING Name
> …
> DATETIME From
> DATETIME To
> ….
>
> The model & table are little bit more complex, but this is the general
> idea.
>
> How can I solve this issue in NHibernate ?
> What should the mapping files look like and how can I query to return
> a Sensor object ?
>
> Kind regards,
> Yves
>
> >
>
--
Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---