[javaee-spec users] rich domain models - injecting services into JPA beans

From: <>
Date: Fri, 16 Nov 2012 15:13:05 +0000 (GMT)


We are using a programming model that is inspired by rich
domains/domain-driven design. Right now we're leveraging Spring's
@Configurable concept, which combined with (a static) weave step allows
us to have JPA/persistable beans that get injected with collaborating
services. This works seamlessly for instance for entities that are the
result of a query, or for entities we create (new) ourselves to be
persisted later.

Would JPA provide us with any standards based support to have the same
programming experience? I've asked a similar question at the Devoxx BOF
yesterday evening, but got no clear/definitive answer.

Thank you,