Hi Hibernate Experts,
I'm hibernate newbie, im using Hibernate v3, my database is postgreSQL..
I'm having this EnhacerByCGLib in my xml generation using XStream, not sure if this is the right place to ask but maybe someone has a solution for this..Besides EnhacerByCGLib phrases, a lot of unwanted methods appear in the xml as well..I've changed my POJO's into public access but it displays more tags...I'm not getting any of this tags in the other part of xml..
<housingHistory class="set">
-
<houseHistory>
<id>1</id>
<classmate reference="../../.."/>
-
<facility class="Facility--EnhancerByCGLIB--37d0e77f" resolves-to="org.hibernate.proxy.SerializableProxy">
<entityName>Facility</entityName>
<persistentClass>Facility</persistentClass>
-
<interfaces>
<java-class>org.hibernate.proxy.HibernateProxy</java-class>
</interfaces>
<id class="long">1</id>
<getIdentifierMethodClass>Facility</getIdentifierMethodClass>
<setIdentifierMethodClass>Facility</setIdentifierMethodClass>
<getIdentifierMethodName>getFacilityId</getIdentifierMethodName>
<setIdentifierMethodName>setFacilityId</setIdentifierMethodName>
<setIdentifierMethodParams>
<java-class>java.lang.Long</java-class>
</setIdentifierMethodParams>
</facility>
</houseHistory>
</housingHistory>
I'm expecting a simple xml like this: How can i eliminate those other tags?
<housingHistory class="set">
<houseHistory>
<id>1</id>
<classmate reference="../../.."/>
<facility>
<id>1</id>
<name>Name of University </name>
</facility>
</houseHistory>
</housingHistory>
Hope someone could shed light on this..many thanks..
|