Programmering

Rich domain-model in JPA using Spring and no AOP

I was looking for a way to enrich my domain-model by having dependencies automatically injected into my domain-objects.

There is a solution to this problem using Hibernate. This approach was based on inserting an Interceptor into Hibernate that injected dependencies during object-instantiation. Hibernate allowed the client to insert an instance of an Interceptor. I was hoping to find a similar solution for JPA.


Syndiker innhold