-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: CLOB issue
PostPosted: Wed Oct 29, 2008 2:09 am 
Newbie

Joined: Wed Oct 29, 2008 1:49 am
Posts: 1
Hi All,
I am first time inserting the clob type using hibernate ..here i am facing some issue with clob type..details follows. pls suggest

Hibernate version: 3

Mapping documents

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="......................PositionHeader" lazy="false" table="POSITION_HEADER" schema="....." >
<cache usage="read-write"/>
<id column="ID" name="id" type="long">
<generator class="sequence">
<param name="sequence">.....POSITION_HEADER_SEQ</param>
</generator>
</id>
<property name="description" column="DESCRIPTION" />
<property name="valid_Till" column="VALID_TILL" />
<property name="upload_Date" column="UPLOAD_DATE" />
<property name="uploaded_By" column="UPLOADED_BY" />
<property name="rds_L2_Id" column="RDS_L2_ID" />
<property name="attatchedfile" column="ATTACHEDFILE" type="java.sql.Clob" />
</class>
</hibernate-mapping>

Full stack trace of any exception that occurs[..........................................ClientPositionProcessor][main]
java.lang.UnsupportedOperationException: Clobs are not cacheable
at org.hibernate.type.ClobType.disassemble(ClobType.java:84)
at org.hibernate.type.TypeFactory.disassemble(TypeFactory.java:416)
at org.hibernate.cache.entry.CacheEntry.<init>(CacheEntry.java:46)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:74)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:980)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:353)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at ...........................................ClientPositionProcessor.process(ClientPositionProcessor.java:71)
at ...........................................CPTeset.main(CPTeset.java:53)

Name and version of the database you are using:Oracle 10g


Read this: http://hibernate.org/42.html

_________________
Thanks in advance
Vidyasagar


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.