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?
|