Hi guys,
Hibernate seem to systematically "detect" my nullable int columns as dirty and updates them to "0".... [not-null="false"] in mapping doesn't seem to change this behaviour.
For ex:
I have a SQL server column [Rating] [int] NULL.
I have a class with:
Quote:
Public Property rating() As Integer
Get
Return _rating
End Get
Set(ByVal Value As Integer)
_rating = Value
End Set
End Property
My mapping file goes like: <property name="rating" column= "rating" not-null="false" />
And yet, for all cases WHERE [Rating] is NULL - I get: NHibernate.Persister.AbstractEntityPersister - d001.Blahblah.Class1.rating is dirty...
Am I missing something here?
Many thanks