I had some time today so I made an attempt at creating injectable
EntityListeners. After wandering for quite some time deep in the CDI land,
I had to pull out and decided that I really don't want to include all the
CDI container dependencies just make my entity listeners injectable. After
that, it
Injectable listeners is only available in JPA 2.1. There was a thread
earlier (started by me) on this. I want to carve out some time at some
point to make it possible in Tapestry-ioc. If you are using EclipseLink and
don't mind an ugly provider-specific hack, you could get some ideas from
http://sv
On Wed, 13 Nov 2013 11:46:54 -0200, Eugen wrote:
Hi Thiago,
Hi!
thanks for the quick reply
how to manage the instantiation of listener classes?
That's JPA stuff and I don't know the answer, unfortunately.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and develo
Hi Thiago,
thanks for the quick reply
how to manage the instantiation of listener classes?
I'm contributing now the EntityManagerSource with custom
PersistenceUnitConfigurer (to avoid XML configuration) and tried to
add a ClassTransformer instance, but it is never called.
2013/11/13 Thiago H de Pa
On Wed, 13 Nov 2013 08:38:05 -0200, Eugen wrote:
Hi,
Hi!
it is possible to user service injections inside a @EntityListeners
annotated class?
If you manage to get it instantiated through Tapestry-IoC, yes.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and devel
Hi,
it is possible to user service injections inside a @EntityListeners
annotated class?
I've tried to put the class in app.base, app.entites and app.service
packages, but the injected field is always null.
My code looks like:
public class EntityJpaListener {
@Inject
private SomeService