i have a result object wich doens't have an id associated to it (it's
a value object ).
it's is not directly associated to any entity so in my domain model no
entity object will reference it.

i want know if i can map it without adding an id columns used only to
make nhibernate works.

this is a simple example of it

public class Result
{
    public DateTime CreationTime {get; private set;}

    public string Data {get; private set;}
}

it's is immutable.

After the creation i only need to get them with methods as

IList<Result> ResultRepository.GetResultCreatedIntoThisPeriod(DateTime
begin, DateTime end)

--~--~---------~--~----~------------~-------~--~----~
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