deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Roytman <roytm...@gmail.com>
Subject Re: Transactional with extended EntityManager is not working?
Date Mon, 18 Jan 2016 02:11:02 GMT
Hello John,

Yes I need

public interface JdoEntityManager  extends EntityManager {

}

but if I inject JdoEntityManager   it is not recognized by @Transactionsl

Please see my previous email in response to Gerhard for rationale

Thanks
alex



On Sun, Jan 17, 2016 at 6:12 PM John D. Ament <johndament@apache.org> wrote:

> Hi Alex,
>
> Just want to check, your usecase is something like
>
> public interface MyEntityManager extends EntityManager {
>
> }
>
> but then how are you creating instances of this object?
>
> John
>
> On Sun, Jan 17, 2016 at 5:45 PM Alex Roytman <roytmana@gmail.com> wrote:
>
> > It looks like of a bean is injected with a field of type not
> EntityManager
> > but an interface extending it, transactional annotation does not work. Is
> > there any way to have transactional to recognize interfaces that extend
> > from EntityManager
> >
> > Thanks
> > Alex
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message