Skip to content

Commit

Permalink
Merge pull request #192 from fgonzal/master
Browse files Browse the repository at this point in the history
Fix field length in HBMs to make them compatible with Microsoft SQL S…
  • Loading branch information
ar authored Dec 4, 2020
2 parents f23dfec + 5bdcc0c commit 49a021b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<id name="id" column="id" type="string">
<generator class="assigned" />
</id>
<property name="hash" length="8192" type="string" />
<property name="hash" length="8000" type="string" />
<property name="active" type="yes_no" />
<property name="deleted" type="yes_no" />
<property name="startDate" type="date" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@
<generator class="native" />
</id>
<property name="date" type="timestamp" />
<property name="info" type="string" length="8192" />
<property name="info" type="string" length="8000" />
<property name="ref" type="string" length="64" index="ref" />
<many-to-one name="author" class="org.jpos.ee.User" column="author" />
<fetch-profile name="eager">
<fetch association="author" style="join"/>
</fetch-profile>
</class>
</hibernate-mapping>

5 changes: 2 additions & 3 deletions modules/eeuser/src/main/resources/org/jpos/ee/User.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</id>

<property name="nick" type="string" length="64" not-null="true" unique="true" index="eeuser_nick" />
<property name="passwordHash" length="8192" type="string" />
<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" />
Expand All @@ -43,7 +43,7 @@
<key column="eeuser" not-null="true"/>
<list-index column="id"/>
<composite-element class="org.jpos.ee.PasswordHistory">
<property name="value" type="string" length="8192" not-null="true" />
<property name="value" type="string" length="8000" not-null="true" />
</composite-element>
</list>

Expand All @@ -60,4 +60,3 @@
</map>
</class>
</hibernate-mapping>

0 comments on commit 49a021b

Please sign in to comment.