Looks good in theory but I see two hindrance
- JPA and BV already define a way to interact with each other and the CDI integration has
been mirrored
consistency is good in this case
- we could convince the JPA EG but that will require time an energy on something that
already works ok
If we end up with spare time, we could try.
On 23 août 2012, at 18:10, Gunnar Morling wrote:
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(a)hibernate.org>: