Joined: Thu Dec 08, 2005 7:30 am Posts: 7
|
Hi,
Hibernate version:3.1.1
I have a table with a column type Clob. I have a view on that table which also has that clob column. When i try to insert a record into that view i get the following exception.
Mapping for that column:
<property name="siteMenu" type="java.sql.Clob">
<column name="SITE_MENU" />
</property>
Stack Trace:
06/08/03 17:21:04 java.lang.IllegalStateException: Clobs may not be accessed after serialization
06/08/03 17:21:04 at org.hibernate.lob.SerializableClob.getWrappedClob(SerializableClob.java:49)
06/08/03 17:21:04 at org.hibernate.type.ClobType.set(ClobType.java:39)
06/08/03 17:21:04 at org.hibernate.type.ClobType.nullSafeSet(ClobType.java:118)
06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1825
)
06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1802
)
06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2058)
06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2426)
06/08/03 17:21:04 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
06/08/03 17:21:04 at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
06/08/03 17:21:04 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
06/08/03 17:21:04 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
06/08/03 17:21:04 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListe
ner.java:296)
06/08/03 17:21:04 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
06/08/03 17:21:04 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:908)
|
|