[hibernate-dev] JPA callback listeners and CDI

Gunnar Morling gunnar at hibernate.org
Thu Aug 23 12:10:23 EDT 2012


Emmanuel,

What do you think about the idea outlined before of having an
EntityListenerFactory in the JPA spec similar to BV's
ConstraintValidatorFactory?

I think the situation in JPA is very similar to BV and feel it would make
sense to solve the problem similarly in both cases. This would also avoid a
direct dependency from JPA to CDI altogether (implementation-wise). The JPA
spec would just require the EE container to plug in a CDI-aware factory,
similar to what we've been discussing for BV constraint validators.

WDYT?

--Gunnar
Am 23.08.2012 17:11 schrieb "Emmanuel Bernard" <emmanuel at hibernate.org>:


More information about the hibernate-dev mailing list