Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread Bruce Snyder
This one time, at band camp, Stein M. Hugubakken said: SMH>g r i t s e n k o wrote: SMH>> SMH>> OK. I was loading whole database of about 1.5 meg (mysql database was of SMH>> this size) into memeory using Castor - the concept was to have a root SMH>> class, on which children were dependent, in tu

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread Stein M. Hugubakken
g r i t s e n k o wrote: OK. I was loading whole database of about 1.5 meg (mysql database was of this size) into memeory using Castor - the concept was to have a root class, on which children were dependent, in turn, its' children were dependent on them - about 6 stories of hierarchy. Once root

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread g r i t s e n k o
OK. I was loading whole database of about 1.5 meg (mysql database was of this size) into memeory using Castor - the concept was to have a root class, on which children were dependent, in turn, its' children were dependent on them - about 6 stories of hierarchy. Once root class was db.loaded, it

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread Stein M. Hugubakken
g r i t s e n k o wrote: I use OJB proxy to leverage lazy loading. I use OJB for O/R data binding. I did use Castor JDO for that, but had memory problems and switched to OJB a month ago. Sorry. I'm very interested in this, would you mind elaborate on your memory problem with Castor? Stein ---

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread g r i t s e n k o
I use OJB proxy to leverage lazy loading. I use OJB for O/R data binding. I did use Castor JDO for that, but had memory problems and switched to OJB a month ago. Sorry. Bruce Snyder wrote: This one time, at band camp, g r i t s e n k o said: gritse>I tried, cast gives CastException. But concep

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread Bruce Snyder
This one time, at band camp, g r i t s e n k o said: gritse>I tried, cast gives CastException. But conceptually, this is the right gritse>ide, to convert proxy to real class and then marshall. Only conversion gritse>may be not necessarily casting. It can be copying property by property gritse>wit

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread g r i t s e n k o
I tried, cast gives CastException. But conceptually, this is the right ide, to convert proxy to real class and then marshall. Only conversion may be not necessarily casting. It can be copying property by property with getters and setters, from proxy properties, to real class properties. Bruce S

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-15 Thread g r i t s e n k o
To cast is a bright idea - I will try it and report on progress! Bruce Snyder wrote: This one time, at band camp, Stein M. Hugubakken said: SMH>g r i t s e n k o wrote: SMH>> SMH>> I marshal like this: SMH>> SMH>> marshaller = new Marshaller(res.getWriter()); SMH>> marshaller

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-13 Thread g r i t s e n k o
Seriously, guys, does anybody have any constructive ideas why Castor ignores ‘map-to xml=’resume’ in class descriptor for Resume class, which implements InterfaceResume, which at run time is represented by proxy class with name starting with '$' , e.g. $Proxy0 The effect I want to achieve is t

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
I marshal like this: marshaller = new Marshaller(res.getWriter()); marshaller.setMapping(_xml_mapping); marshaller.marshal(aResume); viktoR Keith Visco wrote: How are you calling the Marshaller ? Make sure you are not using one of the static marshal methods

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
I marshal like this: marshaller = new Marshaller(res.getWriter()); marshaller.setMapping(_xml_mapping); marshaller.marshal(aResume); Keith Visco wrote: How are you calling the Marshaller ? Make sure you are not using one of the static marshal methods. --Kei

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
I REPOST this as text only, as suggested by Werner Guttman: Werner Guttmann wrote: Hi, can you please REPOST this message as text/ascii, as this mailing does not accept HTML messages. Thanks Werner --Original Message Text--- From: g r i t s e n k o Date: Mon, 12 Apr 2004 11:11:24 -0500 Brief e

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread Keith Visco
How are you calling the Marshaller ? Make sure you are not using one of the static marshal methods. --Keith > g r i t s e n k o wrote: > > Brief error description: > > > > Castor ignores ‘map-to xml=’resume’ in mapping for Resume class, which > at run time is materialized by proxy class – A

Re: [castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread Werner Guttmann
Hi, can you please REPOST this message as text/ascii, as this mailing does not accept HTML messages. Thanks Werner --Original Message Text--- From: g r i t s e n k o Date: Mon, 12 Apr 2004 11:11:24 -0500 Brief error description: Castor ignores map-to xml=resume in

[castor-dev] Interface, when root, not marshalled, mapping ignored

2004-04-12 Thread g r i t s e n k o
Brief error description:   Castor ignores ‘map-to xml=’resume’ in mapping for Resume class, which at run time is materialized by proxy class – Apache OJB does it  for lazy loading purposes – so called dynamic proxy.   Castor attempts to marshal Resume and comes up with xml tag name for Resume,