well.. unfortunately a framework relies on it to detect JPA entities... i
think there is no other way to detect in a reliable way JPA entities?

LieGrueZuRue


On 5 August 2012 19:52, Mark Struberg <strub...@yahoo.de> wrote:

> Having code relying on @Entity is bitter so to say ;)
>
> All JPA functions could also be added via XML, without having any
> annotation on your entities...
>
> Such code would btw also not work in Hibernate if you use proxies. Becasue
> the generated proxies don't have annotations neither.
>
> LieGrue,
> strub
>
>
>
> ----- Original Message -----
> > From: Chris Joysn <joys...@gmail.com>
> > To: users@openjpa.apache.org
> > Cc:
> > Sent: Sunday, August 5, 2012 7:19 PM
> > Subject: Annotations removed when enhancing?
> >
> > Hello,
> >
> > is it possible that entities do not get their annotations removed when
> > OpenJPA is performing its enhancements?
> >
> > unfortunately some code relies on the fact that eg. @Entity is present on
> > classes, but this annotation gets removed by OpenJPA.
> >
> > thanks
> >
>

Reply via email to