From 27baee645065f8f95b89fa563b0acf518cce06ab Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Wed, 9 May 2012 17:10:43 +0200 Subject: [PATCH] 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 --- .../src/main/resources/db.changelog-1.2.xml | 10 ++++++++++ .../expensesheets/entities/ExpenseSheets.hbm.xml | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/libreplan-business/src/main/resources/db.changelog-1.2.xml b/libreplan-business/src/main/resources/db.changelog-1.2.xml index 5c217a1ee..ef9bbc97a 100644 --- a/libreplan-business/src/main/resources/db.changelog-1.2.xml +++ b/libreplan-business/src/main/resources/db.changelog-1.2.xml @@ -352,6 +352,16 @@ + + + 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. + + ALTER TABLE expense_sheet MODIFY description TEXT + + diff --git a/libreplan-business/src/main/resources/org/libreplan/business/expensesheets/entities/ExpenseSheets.hbm.xml b/libreplan-business/src/main/resources/org/libreplan/business/expensesheets/entities/ExpenseSheets.hbm.xml index 7fc5c6c18..0e5b7dc71 100644 --- a/libreplan-business/src/main/resources/org/libreplan/business/expensesheets/entities/ExpenseSheets.hbm.xml +++ b/libreplan-business/src/main/resources/org/libreplan/business/expensesheets/entities/ExpenseSheets.hbm.xml @@ -55,7 +55,8 @@ - + @@ -71,4 +72,4 @@ - \ No newline at end of file +