I have one more question...

If you look on the mapping files and output. For example the Language object
has additional tags/attributtes after marshalling <hibernate-lazy-...></..>.
But why object ProcessType has no such attribute? This object is hibernate
pojo too.

I can't now exactly remember, but an the beginnig i have used only castor a
i think there wasn't such problem with hibernate pojos marshalling... But
later I make a decision to load mapping with castor-spring. Can be this a
reason why i have such additional attributes in my output?

On the other side, I made changes in hibernate transaction handlig and lazy
loading. so this can be reason too.

can you tell me pls when is next release of castor planned?

thaks!

jozef

On 10/15/07, Jozef Kubov <[EMAIL PROTECTED]> wrote:
>
> Great! Thanks!
>
> And when will be next release?
>
>
>
> On 10/15/07, Werner Guttmann <[EMAIL PROTECTED] > wrote:
> >
> > This has been fixed already, and will be shipped with the next release.
> > If you are intersted to get yourself acquainted with this, please feel
> > free to look at the snapshot releases for 1.1.3.
> >
> > Werner
> >
> > Jozef Kubov wrote:
> > > Hello!
> > >
> > > I have a following problem. I want to marshall hibernate pojo into
> > xml.
> > >
> > > this is my castor mapping files:
> > >
> > > processType object
> > > /----------------------------------------------------------
> > > <?xml version=" 1.0" encoding="UTF-8"?>
> > > <mapping>
> > >
> > >
> > >     <class name="com.ibs.rdc.conf.bo.ProcessType"
> > auto-complete="false">
> > >         <description>Default mapping for class
> > > com.ibs.rdc.conf.bo.ProcessType </description>
> > >         <map-to xml="processType"/>
> > >          <field name="id" type="integer" required="false"
> > direct="false"
> > > transient="false">
> > >             <bind-xml name="id" node="element" reference="false"/>
> > >         </field>
> > >         <field name="isNonAutomatic" type="boolean" required="false"
> > >             direct="false" transient="false">
> > >             <bind-xml name="isNonAutomatic" node="element"
> > > reference="false"/>
> > >         </field>
> > >         <field name="tolerance" type=" com.ibs.rdc.conf.bo.Tolerance"
> > >             required="false" direct="false" transient="false">
> > >             <bind-xml name="tolerance" node="element"
> > reference="false"/>
> > >         </field>
> > >         <field name="processTypeId" type="string" required="false"
> > >             direct="false" transient="false">
> > >             <bind-xml name="processTypeId" node="element"
> > > reference="false"/>
> > >         </field>
> > >         <field name="description"
> > >             type="com.ibs.rdc.conf.bo.ProcessTypeDescription"
> > >             required="false" direct="false" transient="false"
> > > collection="set">
> > >             <bind-xml name="processTypeDescription" node="element"
> > >                 location="processTypeDescriptionList"
> > reference="false"/>
> > >         </field>
> > >         <field name="processServicesUri" type="string"
> > required="false"
> > >             direct="false" transient="false">
> > >             <bind-xml name="processServicesUri" node="element"
> > > reference="false"/>
> > >         </field>
> > >         <field name="factoryCalendarId" type="string" required="false"
> >
> > >             direct="false" transient="false">
> > >             <bind-xml name="factoryCalendarId" node="element"
> > > reference="false"/>
> > >         </field>
> > >         <field name="illicitProcessId" type="string" required="false"
> > >             direct="false" transient="false">
> > >             <bind-xml name="illicitProcessId" node="element"
> > > reference="false"/>
> > >         </field>
> > >     </class>
> > > </mapping>
> > >
> > ----------------------------------------------------------------------------------------------------------------------
> >
> > > procesTypeDescription:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <mapping>
> > >
> > >
> > >     <class name="com.ibs.rdc.conf.bo.ProcessTypeDescription "
> > > auto-complete="true">
> > >         <description>Default mapping for class
> > > com.ibs.rdc.conf.bo.ProcessTypeDescription</description>
> > >         <map-to xml="processTypeDescription"/>
> > >          <field name="id" type="integer" required="false"
> > direct="false"
> > > transient="false">
> > >             <bind-xml name="id" node="element" reference="false"/>
> > >         </field>
> > >         <field name="textline" type="string" required="false"
> > >             direct="false" transient="false">
> > >             <bind-xml name="textline" node="element"
> > reference="false"/>
> > >         </field>
> > >         <!--
> > >         -->
> > >         <field name="language" type="com.ibs.rdc.conf.bo.Language"
> > >             required="false" direct="false" transient="false">
> > >             <bind-xml name="languages" node="element"
> > reference="false"/>
> > >         </field>
> > >     </class>
> > > </mapping>
> > >
> > -----------------------------------------------------------------------------------------------------------------------------------
> >
> > > language object:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <mapping>
> > >     <class name="com.ibs.rdc.conf.bo.Language" auto-complete="true">
> > >         <description>
> > >             Default mapping for class com.ibs.rdc.conf.bo.Language
> > >         </description>
> > >         <map-to xml="language" />
> > >         <field name="languageKey" type="string" required="false"
> > >             direct="false" transient="false">
> > >             <bind-xml name="languageKey" node="element"
> > >                 reference="false" />
> > >         </field>
> > >         <field name="id" type="integer" required="false"
> > direct="false"
> > >             transient="false">
> > >             <bind-xml name="id" node="element" reference="false" />
> > >         </field>
> > >     </class>
> > > </mapping>
> > >
> > -------------------------------------------------------------------------------------------------------------------------------------
> >
> > >
> > > So i try to marshall object processType. i awaits somthing like that:
> > >
> > >
> > >         <processType>
> > >             <isNonAutomatic>true</isNonAutomatic>
> > >             <tolerance>
> > >                         <isLaterRequested>true</isLaterRequested>
> > >                         <toleratedDays>0</toleratedDays>
> > >             </tolerance>
> > >             <processTypeId>REQUESTLOAN</processTypeId>
> > >             <processTypeDescriptionList>
> > >                 <processTypeDescription>
> > >                     <textline>loan request (market)</textline>
> > >                                 <languageKey>ENGLISH</languageKey>
> > >                     </languages>
> > >                 </processTypeDescription>
> > >                 <processTypeDescription>
> > >                     <textline>Krediterfassung im Markt</textline>
> > >                     <languages>
> > >                                 <languageKey>DEUTSCH</languageKey>
> > >                         <language-key>DEUTSCH</language-key>
> > >                     </languages>
> > >                 </processTypeDescription>
> > >             </processTypeDescriptionList>
> > >             <processServicesUri>local</processServicesUri>
> > >             <factoryCalendarId></factoryCalendarId>
> > >             <illicitProcessId></illicitProcessId>
> > >         </processType>
> > >
> > >
> > > but i have become this:
> > >
> > >         <processType>
> > >             <isNonAutomatic>true</isNonAutomatic>
> > >             <tolerance
> > >                 xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance";
> > >                 is-later-requested="true"
> > > xsi:type="java:com.ibs.rdc.conf.bo.Tolerance_$$_javassist_17 ">
> > >                 <hibernate-lazy-initializer unwrap="false"
> > >                     uninitialized="false"
> > > xsi:type="java:
> > org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer">
> > >
> > >                     <implementation xsi:type="tolerance">
> > >                         <isLaterRequested>true</isLaterRequested>
> > >                         <toleratedDays>0</toleratedDays>
> > >                     </implementation>
> > >                     
> > > <entity-name>com.ibs.rdc.conf.bo.Tolerance</entity-name>
> >
> > >                 </hibernate-lazy-initializer>
> > >                 <tolerated-days>0</tolerated-days>
> > >             </tolerance>
> > >             <processTypeId>REQUESTLOAN</processTypeId>
> > >             <processTypeDescriptionList>
> > >                 <processTypeDescription>
> > >                     <textline>loan request (market)</textline>
> > >                     <languages
> > >
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > xsi:type="java:com.ibs.rdc.conf.bo.Language_$$_javassist_11 ">
> > >                         <hibernate-lazy-initializer unwrap="false"
> > >                             uninitialized="false"
> > > xsi:type="java:
> > org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer
> > > ">
> > >                             <implementation xsi:type="language">
> > >                                 <languageKey>ENGLISH</languageKey>
> > >                             </implementation>
> > >
> > > <entity-name>com.ibs.rdc.conf.bo.Language</entity-name>
> > >                         </hibernate-lazy-initializer>
> > >                         <language-key>ENGLISH</language-key>
> > >                     </languages>
> > >                 </processTypeDescription>
> > >                 <processTypeDescription>
> > >                     <textline>Krediterfassung im Markt</textline>
> > >                     <languages
> > >
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > xsi:type="java:com.ibs.rdc.conf.bo.Language_$$_javassist_11 ">
> > >                         <hibernate-lazy-initializer unwrap="false"
> > >                             uninitialized="false"
> > > xsi:type="java:
> > org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer
> > > ">
> > >                             <implementation xsi:type="language">
> > >                                 <languageKey>DEUTSCH</languageKey>
> > >                             </implementation>
> > >
> > > <entity-name>com.ibs.rdc.conf.bo.Language</entity-name>
> > >                         </hibernate-lazy-initializer>
> > >                         <language-key>DEUTSCH</language-key>
> > >                     </languages>
> > >                 </processTypeDescription>
> > >             </processTypeDescriptionList>
> > >             <processServicesUri>local</processServicesUri>
> > >             <factoryCalendarId></factoryCalendarId>
> > >             <illicitProcessId></illicitProcessId>
> > >         </processType>
> > >
> > >
> > > there is some with hibernate proxies... and lazy loading. I have no
> > idea
> > > how can fix it.
> > >
> > > thanks for advice.
> > >
> > > jozef
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>

Reply via email to