is it possible to persist a class like this, if so what kind of
mapping would I create?If not what other options would I have given
the domain developers say if nhibernate cant persist generics then why
use it, so failure isnt an option for me.
For the database, I have tables such as DataCollection, Variable,
DoubleValue, ...the rest of the primitive types...DateValue,
StringValue, ObjectValue. The XXXValue tables hold all the different
types of observations. ObjectValue is stored as a BLOB and used as a
catch all to hold things like images. The XXXValue tables have a
reference to the Variable that owns them and Variable has a reference
to the DataCollection owns it. With a couple joins you have fully
populated DataCollection object. This actually works well for a had
rolled DAL I've written. Now I just need to see if I can get all the
NHibernate goodness.
There are several details I've left out to keep this short. If you
end up staying with the current model, feel free to contact me and I
can share the rest of the details.
Marcus
On Sun, Jun 29, 2008 at 4:13 AM, srf <scott...@cmgl.ca> wrote:
>