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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -