No, you first generate java classes from your XML schema(s). If you were about to use Castor XML only, this would be all that is required. As you plan to use the persistence side of Castor as well, you'll need mapping files for those entities that you want to make persistence capable.
Werner > -----Ursprüngliche Nachricht----- > Von: Mohsen Saboorian [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 28. März 2007 12:27 > An: [email protected] > Betreff: Re: [castor-user] AW: .NET DataSet Schema > > > Werner, > Thanks for the reply. > > I think I should write a mapping XML file per each XSD, am I right? Is > there > any shortcut for that? For example is it possible that Castor treats XML > schemas as Database mapping file (i.e., there is now more need for > separate > mapping files)? > > Thanks again. > > > Werner Guttmann-3 wrote: > > > > Hi, > > > > Castor does provide you with solutions for both your problems. Castor > XML > > and its XML code generator will allow you to generate Java classes from > > your XML schemas, and use them in your application as domain objects. > > > > Once you have got those, you can use Castor JDO to interact with the > > database to load/update/write those domain objects to and from the > > database. > > > > Let me know if you need more help. > > > > Werner > > > >> -----Ursprüngliche Nachricht----- > >> Von: Mohsen Saboorian [mailto:[EMAIL PROTECTED] > >> Gesendet: Mittwoch, 28. März 2007 08:13 > >> An: [email protected] > >> Betreff: [castor-user] .NET DataSet Schema > >> > >> > >> Hi, > >> I have a number of .NET XSD schemas generated as DataSets together with > >> some > >> proxy objects to handle tables. Is there an easy way to: > >> 1. generate JavaBeans based on those schemas (I know that Sun's xjc > does > >> this) > >> 2. fill (from database) generated JavaBeans from some tables or views > >> with > >> help of those schemas > >> > >> The latter is much more important to me. > >> > >> I'm actually new to Castor, so please excuse me if the question is > >> somehow > >> odd :) > >> > >> Thanks in advance. > >> -- > >> View this message in context: http://www.nabble.com/.NET-DataSet- > Schema- > >> tf3477491.html#a9706693 > >> Sent from the Castor - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list please visit: > >> > >> http://xircles.codehaus.org/manage_email > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > -- > View this message in context: http://www.nabble.com/.NET-DataSet-Schema- > tf3477491.html#a9710928 > Sent from the Castor - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

