-->
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: Using Clobs and Oracle - only seems to partially insert.
PostPosted: Sun Dec 19, 2004 1:23 pm 
Newbie

Joined: Sun Dec 19, 2004 12:48 pm
Posts: 3
What is the best way of inserting clobs into Oracle via hibernate mapping?

At the moment i have a solution that grabs an Oracle Clob object then populates and finally updates to Oracle . But this makes my code oracle specific.

Normal insterting only adds a portion of the large XML files i'm trying to insert. I've tried with a type of clob, text , string.
Here is the mapping file...

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate mapping DTD/EN" "http://hibernate.sf.net/hibernate-mapping-2.0.dtd">


<hibernate-mapping>
<class name="com.cedar.preston.mercury.outbox.OutgoingMessage" table="MERCURY_OUTBOX">
<id name="messageId_int" column="MESSAGE_ID">
<generator class="increment"/>
</id>

<property name="messageType" column="TYPE" />
<property name="authCode" column="AUTHORITY_CODE" />
<property name="correlationId" column="CORRELATION_ID" />
<property name="created" column="CREATED" />
<property name="status" column="STATUS" />
<property name="description" column="DESCRIPTION" />
<property name="payPeriod" column="PAY_PERIOD" />
<property name="dazPayload" column="CONTENT" type="text" />
<property name="gtErrorXml" column="ERROR_XML" type="clob" />
<property name="preStatus" column="PREVIOUS_STATUS" />
<property name="preDate1" column="PREVIOUS_STATUS_DATE1" />
<property name="preDate2" column="PREVIOUS_STATUS_DATE2" />
<property name="preDate3" column="PREVIOUS_STATUS_DATE3" />
</class>
</hibernate-mapping>


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.