What's the JDO equivalent of the JPA @PersistenceContext annotation
In JPA, you can inject an EntityManager
with the @PersistenceContext
annotation:
@PersistenceContext
private EntityManager 开发者_StackOverflow社区entityManager;
What is the JDO equivalent of this for a PersistenceManager
?
@????
private PersistenceManager persistenceManager;
There is no standard equivalent AFAIK. But you could use Guice or Spring JDO Support.
精彩评论