Skip to content

Commit

Permalink
Merge pull request #263 from barspi/master
Browse files Browse the repository at this point in the history
set defaults to avoid certain bugs when an eeuser boolean column is null
  • Loading branch information
ar authored Sep 14, 2022
2 parents 139fd0e + 97fbd38 commit 9ea9283
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/eeuser/src/main/resources/org/jpos/ee/User.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<property name="passwordHash" length="8000" type="string" />
<property name="name" length="128" not-null="false" type="string" />
<property name="email" length="128" not-null="false" type="string" />
<property name="active" type="yes_no" />
<property name="deleted" type="yes_no" />
<property name="active" type="yes_no" not-null="false"><column name="active" default="'Y'" /></property>
<property name="deleted" type="yes_no" />
<property name="verified" type="yes_no" />
<property name="startDate" type="date" />
<property name="endDate" type="date" />
Expand All @@ -47,12 +47,12 @@
</composite-element>
</list>

<property name="forcePasswordChange" type="yes_no" />
<property name="forcePasswordChange" type="yes_no" not-null="false"><column name="forcepasswordchange" default="'N'" /></property>
<property name="lastLogin" type="timestamp" />
<property name="passwordChanged" type="timestamp" />
<property name="loginAttempts" type="int" />

<map name="props" lazy="true" table="eeuser_props"
<map name="props" lazy="true" table="eeuser_props"
cascade="all-delete-orphan">
<key foreign-key="FKUserProps" />
<index column="propName" type="string" length="64"/>
Expand Down

0 comments on commit 9ea9283

Please # to comment.