Re: attribute element in field-desciptor
Joerg -- The attribute element allows you to add any sort of attribute without having to first modify the dtd. They allow users to implement enhancements that shouldn't be part of the core ojb api. I use them extensively on my current project to allow me to use Oracle packages to handle all insert, update and delete operations. Details of how we're doing this can be found xdocs/how-to-work-with-stored-procedures.xml. Ron Gallagher Atlanta, GA [EMAIL PROTECTED] > > From: Joerg Lensing <[EMAIL PROTECTED]> > Date: 2003/06/26 Thu AM 04:56:10 EDT > To: OJB Users List <[EMAIL PROTECTED]> > Subject: attribute element in field-desciptor > > hello, > can someone tell me the purpose of the attribute element in > field-descriptor? the docs are very > short about this and the testcases don't show an example. > > joerg > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: attribute element in field-desciptor
hi Joerg, http://db.apache.org/ojb/repository.html#attribute for reference. You can use this tag for user defined attrbites that you want to add to your field-, reference, collection and class-decsriptors. This allows you to keep special information within the DescriptorRepository. For instance you could keep a jcdAlias Attribute with each class-descriptor and use this value to store classes to different jdbc datasources. http://cvs.apache.org/viewcvs/db-ojb/src/test/org/apache/ojb/broker/metadata /CustomAttributesTest.java shows how to use the API (and also proves that this feature is working!) cheers, Thomas > -Original Message- > From: Joerg Lensing [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 10:56 AM > To: OJB Users List > Subject: attribute element in field-desciptor > > > hello, > can someone tell me the purpose of the attribute element in > field-descriptor? the docs are very > short about this and the testcases don't show an example. > > joerg > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
attribute element in field-desciptor
hello, can someone tell me the purpose of the attribute element in field-descriptor? the docs are very short about this and the testcases don't show an example. joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]