Hi Kelvin, if I understand you correctly, there is currently no supported way of extending generated SDO implementation classes: 1) I cannot have my own superclass of a generated SDO class since this is already occupied 2) I cannot (yet) simply subclass a generated SDO class, this may be addressed in TUSCANY-513
As a consequence I would have to modify the generated SDO implementation class in order to offer custom formatter and validation logic!? Is there eventually a way to inject code using annotations? Or is it possible to re-generate and prevent override of custom code (merge)? Thanks Erich --- kelvin goodson <[EMAIL PROTECTED]> wrote: > Erich, > there's a number of ways you could be trying to > extend SDO generated > classes. You might be wanting to make a new SDO > Type which uses the > generated base class as an SDO basetype. If so then > that's the subject of > http://issues.apache.org/jira/browse/TUSCANY-513, > which I was hoping to > address at one time, but haven't got to it yet. If > you want to override > existing behaviour, I don't believe there are any > specific hook points we > expose to facilitate that currently, e.g. template > method patterns. If I > understand correctly, the -storePattern is there due > to the store pattern > that was implemented in the eclipse implementation > of SDO 1.0 which was an > implementation feature which allowed you to override > the gets and sets of > properties to a store instance (for example I used > this to allow lazy > instantiation using XML pull parsing) -- this kind > of feature is coming up > for discussion in the SDO 3 spec effort, but isn't > a functional part of the > current Tuscany SDO implementation. > Regards, Kelvin. > > > On 19/03/07, Erich Rueede <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I'm trying to figure out how I extend a generated > > static Java SDO with additional features, such as > my > > own custom formatting an validation methods. Are > there > > some hooks, that could be used for this subject? > Will > > the generator's -storePattern eventually help? > > Thanks, Erich > > > > > > > > > > > ____________________________________________________________________________________ > > The fish are biting. > > Get more visitors on your site using Yahoo! Search > Marketing. > > > http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
