Arnaud, Thanks for info. I tried running java org.exolab.castor.tools.MappingTool -i sample.ear -o sample.xml It gave me "java.lang.ClassNotFoundException:"
What should be the input paramter.? helo says -i "Sets the input class" Regards, Sunil -----Original Message----- From: Arnaud Blandin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 12:19 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] How to Generate Mapping.XML File Hi Sunil, First to have to be sure that a mapping file is needed. Indeed Castor can introspect your objects to marshal/unmarshal it without mapping files. Then if you really need to create a mapping you can use the mapping tool (org.exolab.castor.tools.MappingTool). Hope that helps, Arnaud > -----Original Message----- > From: Chauhan, Sunil [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 02, 2002 5:55 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] How to Generate Mapping.XML File > > Hi All, > > What we have is a XML File which we need to Bind to a JAVA Objects > using > Castor. > Can u tell me How to generate Mapping.XML (if automatically using > any tool o > otherwise). > As our XMl file has 3000 Elements creating manually seems to be > tough:-( > > Regards, > > Sunil > > -----Original Message----- > From: Martin, Margaret [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 02, 2002 11:42 AM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Long transactions - how to do it (again!) > > > Boris, > Sounds like in your instance you don't actually need a long > transaction. > Simply modify the object and then commit, your changes should be > persisted > just fine. The long transaction is for the case where you actually > have the > entire object - > > Hope this helps - > Margaret > > -----Original Message----- > From: Boris Klug [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 02, 2002 10:01 AM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Long transactions - how to do it (again!) > > > Hello! > > I have a question regarding long transaction. I read the ml archive > and > found > a lot of posting regarding long transaction but no posting fits to > me. > > What I want to do is the usual stuff: > Web-application, user get information, sometimes modifies it and > than wants > to > store it. > > Solution would be using long transactions for this. The problem is > that when > > the user hit "save", all I have is the id of the object and the > values that > were changed but no longer the object I got from db.load(). > So I tried to get the object from the db again using OQL, modified > the > context > of the object and than do a db.update(). Castor than told me, that > this is > not the object I db.load()ed (which is right). The object ist > implements > TimeStampled. > One solution would be to store the original object in the session > data but I > > dont wanna do it. Any other solution to do it whithout storing the > timestamp > > in the database? > > -- > Dipl. Inform. Boris Klug, control IT GmbH, Germany > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
