Liferay Exception Data while persistance update -
i'm using liferay servicebuilder trying read code file string , saving db, using update method, error:
return irrulepersistence.update(rule, false); error: data exception error truncated left.
i created column service.xml file:
<column name="rulefile" type="string" /> is there other type required saving long strings?
can save .drl file db? if yes, can do? there guide explaining that?
thank much, oriol
for storing long string , can have entry in portlet-model-hints.xml as
<field name="description" type="string"> <hint-collection name="clob" /> <column name="file" type="blob" /> you can use type blob store file db. can refer dbstore.java -->updatefile detail
Comments
Post a Comment