You can't. ejbStore runs a trivial update statement. If you need to do
something special you have to use bean managed persistence.

Boris

P.S. If you really don't want to write BMP you can try decompile the class
Orion generated for your bean and add some jdbc code there.
It is possible to do but very ugly.

P.P.S May be you can write a trigger on that table which will do the rest of
updates if your database support after update triggers. This could work
but I wouldn't recommend it for production software.



----- Original Message -----
From: "Aniket V U" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, December 08, 2000 10:08 AM
Subject: RE: Changing Orion Generated SQL


> well, i wanted to change the SQL used in the ejbStore method due to some
> problems that i was having. orion-ejb-jar.xml seems to have the SQL only
> for finder methods other than the findByPrimary key methods.
>
> is there any way to change that???
>
> Thanks
> Aniket
>
> At 06:36 PM 12/8/2000, you wrote:
> >Take a look at the documentation for orion-ejb-jar.xml.  It's a lot
> >easier if you have a few samples to look at alongside.
> >
> >http://www.orionserver.com/docs/orion-ejb-jar.xml.html
> >
> >What changes you have in mind?
> >
> >Jeff Schnitzer
> >[EMAIL PROTECTED]
> >
> >
> > >-----Original Message-----
> > >From: Aniket V U [mailto:[EMAIL PROTECTED]]
> > >Sent: Friday, December 08, 2000 3:59 AM
> > >To: Orion-Interest
> > >Subject: Changing Orion Generated SQL
> > >
> > >
> > >Hi folks,
> > >
> > >Is there any way I can change the SQL code generated by Orion for CMP
> > >beans?? The J2EE RI allows this by editing one of the
> > >deployment config
> > >files but i wasnt able to find anything anywhere???
> > >
> > >Thanks in advance
> > >
> > >Aniket
> > >
> > >
> > >
> > >
>
>


Reply via email to