java - CLOB not saving on ORACLE (with JPA, eclipselink) -


i'm working on project in have class attribute:

@column(name="xmldata", columndefinition="clob not null") @lob @basic(fetch=fetchtype.lazy) @getter @setter private string _xmldata; 

in database, column type attribute clob.

i'm running application on weblogic 11gr1 (10.3.5), using oracle database (11gr2), jpa , eclipselink jpa provider. problem have everytime save registry on database, clob field not saved.

but if don't put @lob annotation, works fine.

in logs, can see first uses "insert" sentence insert data except clob, , uses "select update" sentence insert clob data, don't know if may part of problem.

thank you.

i've searched lot answer, until realized if using eclipselink, @ least 2.5.2 version, don't have use "@column(name="xmldata", columndefinition="clob not null") @lob @basic(fetch=fetchtype.lazy)". this:

@column(name = "xml_data") private string _xmldata; 

eclipselink know how handle clob column.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -