• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cglib enhancer muddles reflection.

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys. Im using a jtree which is lazily loaded and goes infinitely deep by using reflection to go down the collection pathways from auto generated hibernate code.

My problem is that once i go a few levels down, I get all these weird cglib fields in my jtree, making my UI look ugly.

Also, I lose some of the fields in the object that is being wrapped by cg lib.

Why does this happen ? Does this have to do with lazy object loading ?

Please help /.... here is the mapping for the class that is muddled with cglib info.

<hibernate-mapping>
<class name="com.uchc.expert.dao.RefPubmedsource" table="ref_pubmedsource" catalog="ExpertSystem">
<comment></comment>
<id name="id" type="int">
<column name="id" />
<generator class="native" />
</id>
<property name="description" type="string">
<column name="description">
<comment></comment>
</column>
</property>
<property name="type" type="string">
<column name="type" length="40">
<comment></comment>
</column>
</property>
<property name="pmid" type="java.lang.Integer">
<column name="pmid" unique="true">
<comment></comment>
</column>
</property>
<property name="url" type="string">
<column name="url">
<comment></comment>
</column>
</property>
<property name="isComplete" type="java.lang.Boolean">
<column name="isComplete">
<comment></comment>
</column>
</property>
<property name="title" type="string">
<column name="title" not-null="true">
<comment></comment>
</column>
</property>
<set name="motifsources" inverse="true" lazy="true">
<key>
<column name="pubmedsource" not-null="true">
<comment></comment>
</column>
</key>
<one-to-many class="com.uchc.expert.dao.Motifsource" />
</set>
<set name="refPmsProteins" inverse="true" lazy="true">
<key>
<column name="ref_pms">
<comment></comment>
</column>
</key>
<one-to-many class="com.uchc.expert.dao.RefPmsProtein" />
</set>
<set name="targethomologeneclusters" inverse="true" lazy="true">
<key>
<column name="pms" not-null="true">
<comment></comment>
</column>
</key>
<one-to-many class="com.uchc.expert.dao.Targethomologenecluster" />
</set>
<set name="refPmsDomains" inverse="true" lazy="true">
<key>
<column name="pms">
<comment></comment>
</column>
</key>
<one-to-many class="com.uchc.expert.dao.RefPmsDomain" />
</set>
<set name="refPubmedQueryResults" inverse="true" lazy="true">
<key>
<column name="pms" not-null="true">
<comment></comment>
</column>
</key>
<one-to-many class="com.uchc.expert.dao.RefPubmedQueryResult" />
</set>
<set name="targetuserclusters" inverse="true" lazy="true">
<key>
<column name="refpubmesource" not-null="true">
<comment></comment>
</column>
</key>
<one-to-many class="com.uchc.expert.dao.Targetusercluster" />
</set>
<set name="targetspeciesclusters" inverse="true">
<key>
<column name="pms" not-null="true">
<comment></comment>
</column>
</key>
<one-to-many class="com.uchc.expert.dao.Targetspeciescluster" />
</set>
</class>
</hibernate-mapping>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic