Thanks Bruce.

Do you have an example of mapping xml file for mapping 2 classes to one
table?  
Does each class have to have the same identity? 

TIA
--ekiM
R&D Hummingbird Core Services
613.548.4355 x1535 | 613.548.7801



-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 30, 2004 11:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-user] JDO: 2 different classes mapped to same table.


Mike Wannamaker wrote:

Please see my answers inline.

> I'm a newbie to the JDO stuff of castor.  I was wondering if it is 
> possible to have 2 different java classes mapped to the same table 
> only different columns or does every java object have to reside in it's
own table?

Yes, it is possible to map two classes to different columns in the same
table.

> Also if I use SourceGenerator to generate java classes from an xsd 
> file, is there any way to tell the source generator to use a specific 
> class for all generated classes to extend?

Yes, I believe this is possible via a binding file:

     http://www.castor.org/sourcegen.html#Binding-File

I've not used this yet (but I will soon) so I can't comment any further than
that at this time. But Arnaud and Keith can answer questions about it.

Bruce
--
perl -e 'print
unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to