Setting default values ​​in nhibernate-mapping

I am trying to put the default value in a mapping. When I run, it says that "default" is not declared.

my code

<property name="retrycount" column="retrycount" type="Int32" default="0" />

Is this support for nhibernate

thank

+5
source share
1 answer

supported by:

<property name="retrycount" type="Int32">
  <column name="retrycount" default="0"/>
</property>
+12
source

All Articles