I can't see the relation between the class you sent us and the mapping you
sent us.
The class has a Nullable<int> as POID but in the mapping you are using a
composite ID.


On Fri, Jul 9, 2010 at 12:02 PM, F.B. ten Kate <[email protected]> wrote:

> That has to do with the fact i didn't (and still don't) wanna use
> DTO's, while using these object in webservices. Since the objects
> don't have (or need) and id when they are send to the server to be
> inserted we made it a nullable int.
>
> It hasn't been a problem before so i doubt it is now.
>
> I'm not able to pin point the problem, it seems the exception is
> thrown from NHibernate itself so might actually be a bug. But it's
> frustrating the hell out of me.
>
> If i had to gues it has something to do with the following mapping:
>
> <class name="EntityReactionType" table="tbl_Entiteit_Reactie_Type">
>                <composite-id>
>                        <key-many-to-one name="Entity" column="Entiteit_ID"
> class="Entity"/
> >
>                        <key-many-to-one name="ReactionType"
> column="Reactie_Type_ID"
> class="ReactionType"/>
>                </composite-id>
>                <property name="Text" column="Omschrijving"/>
>                <set name="PossibleResponses"
> table="tbl_Entiteit_Response_Reactie_Type" batch-size="50">
>                        <key>
>                                <column name="Bron_Entiteit_ID"
> sql-type="int"/>
>                                <column name="Bron_Reactie_Type_ID"
> sql-type="int"/>
>                        </key>
>                        <many-to-many class="EntityReactionType">
>                                <column name="Response_Entiteit_ID"/>
>                                <column name="Response_Reactie_Type_ID"/>
>                        </many-to-many>
>                </set>
>        </class>
>
> Since atm for some reason NHibernate is having a hard time inserting
> the correct values, for some reason it NULLs the Entity and
> ReactionType, not sure why and this might be unrelated but somehow i
> doubt that. Maybe NHibernate is NULLing the values somewhere and
> expecting them to not be null and trying to call a property/method
> somewhere else (thus causing some errors).
>
>
>
> On 9 jul, 16:47, kor <[email protected]> wrote:
> > why id is nullable? maybe the problem is that
> >
> > anyhow put same log to identify when this exception is thrown,
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


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

Reply via email to