I do not see with the information you have provided why you encounter this
issue.
Though I do not believe it to be related to your problem, it seems to me
you have mapped your tables "the other way round". I mean, the table
t_data_point_value which primary key is also a foreign key on t_data_point
should be the one mapped through the <join>
<class name="MeasValue" table="t_data_point">
<id column="id" type="int" />
<property name="measurementId" column="measurement_id" />
<property name="ObjectId" column="object_id" />
<property name="ObjectTypeId" column="object_type" />
<join table="t_data_point_Value">
<key column="data_point_id" />
<property name="Timestamp" column="timestamp "/>
<property name="Value" column="value"/>
</join>
</class>
But I believe your inversion should cause issues only on inserts attempts.
An other point, your id declaration should specify a generator (
http://nhforge.org/doc/nh/en/index.html#mapping-declaration-id-generator ).
Again, this should be an issue only on inserts.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.