Gotcha. To do that, you'll need to implement the
org.apache.openjpa.kernel.Seq interface. Take a look at the docs [1]
for details. That section of the docs also has some examples that
should help you use your custom sequence.

[1] http://openjpa.apache.org/docs/latest/manual/manual.html#ref_guide_sequence

-Patrick

On Nov 5, 2007 1:01 PM, Miroslav Nachev <[EMAIL PROTECTED]> wrote:
> No. I want to have my own class with which to generate the Ids.
> For example I have binary(32) field which is the Primary Key. I would like
> to generate the values for this PK in my own way.
>
>
> Miro.
>
>
> On 11/5/07, Patrick Linskey <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Can you describe what you mean by a "generic" GeneratedValue? Do you
> > mean that you'd like to use the @GeneratedValue annotation on
> > non-identity fields? If so, then that is possible in OpenJPA.
> >
> > -Patrick
> >
> > On Nov 5, 2007 12:08 PM, Miroslav Nachev <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > Is there any way to have Generic GeneratedValue in OpenJPA. I know that
> > this
> > > is possible in Hibernate JPA but I would like to use OpenJPA if is
> > possible.
> > > Any suggestions?
> > >
> > >
> > > Regards,
> > > Miro.
> > >
> >
> >
> >
> > --
> > Patrick Linskey
> > 202 669 5907
> >
>



-- 
Patrick Linskey
202 669 5907

Reply via email to