2

I'd like to ask how to set the default value in hbm.xml of the type numeric_boolean please

<property name="isSundayToday" column="IS_SUNDAY" type="numeric_boolean" />

I tried with default="true" or default="1", it didn't work. Someone can help please?

tbraun89
  • 2,246
  • 3
  • 25
  • 44
quan
  • 21
  • 1
  • You have to set the default value in a nested column tag. Have a look at https://docs.jboss.org/hibernate/orm/3.3/reference/en/html/mapping.html#mapping-declaration-mapping chapters 5.1.11 and 5.1.22 –  Aug 29 '18 at 15:44

0 Answers0