Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set default values in nhibernate-mapping

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

my code is

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

Is this support for nhibernate

Thank you

like image 607
yohan.jayarathna Avatar asked Aug 04 '11 06:08

yohan.jayarathna


1 Answers

it is supported:

<property name="retrycount" type="Int32">
  <column name="retrycount" default="0"/>
</property>
like image 122
Firo Avatar answered Oct 30 '22 14:10

Firo