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 a clob problem
PostPosted: Tue Dec 12, 2006 2:19 am 
Newbie

Joined: Tue Nov 28, 2006 3:52 am
Posts: 5
Hi there

My business model uses very complex classes of attributes, and I found a good solution in xml serialization performed by jdom.

Hibernate works well for association, where I put lazy="false" to handle polymorphism right. Mapping is only
<property name="xmlCLOB" access="property" column="XMLCLOB" type="text"/>.

I thought to duplicate some useful attribute to perform fast query, i.e. personName is serialized in xmlCLOB and returned by
getQryPersonName too, so add in the mapping
<property name="qryPersonName" length="256"/>.

My problem is that both HSQL end nativeSQL returns the full entity. When I try to access qryPersonName value how can I avoid that Hibernate perform the slow setXmlCLOB? Or old jdbc is better?


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.