Fix problem with MySQL and description TEXT field in expense_sheet
The problem is that the type has to be specified in the hbm.xml and also an issue with Hibernate and the field type. FEA: ItEr76S04BugFixing
This commit is contained in:
parent
8b74637777
commit
27baee6450
2 changed files with 13 additions and 2 deletions
|
|
@ -352,6 +352,16 @@
|
|||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="change-column-description-in-expense_sheet_to-text-in-mysql"
|
||||
author="mrego" dbms="mysql">
|
||||
<comment>
|
||||
Change column description in expense_sheet to TEXT in MySQL.
|
||||
Because of using modifyDataType convert the column in LONGTEXT and
|
||||
this is causing some problems with Hibernate mapping.
|
||||
</comment>
|
||||
<sql>ALTER TABLE expense_sheet MODIFY description TEXT</sql>
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="smontes" id="creation-table-expense-sheet-line">
|
||||
<createTable tableName="expense_sheet_line">
|
||||
<column name="id" type="BIGINT">
|
||||
|
|
|
|||
|
|
@ -55,7 +55,8 @@
|
|||
|
||||
<property name="total" access="field" column="total" />
|
||||
|
||||
<property name="description" access="field" column="description" />
|
||||
<property name="description" access="field" column="description"
|
||||
type="text" />
|
||||
|
||||
<property name="lastExpenseSheetLineSequenceCode" access="field"
|
||||
column="last_expense_sheet_line_sequence_code" />
|
||||
|
|
@ -71,4 +72,4 @@
|
|||
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
</hibernate-mapping>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue