开发者

What's the JDO equivalent of the JPA @PersistenceContext annotation

开发者 https://www.devze.com 2023-01-16 18:54 出处:网络
In JPA, you can inject an EntityManager with the @PersistenceContext annotation: @PersistenceContext private EntityManager 开发者_StackOverflow社区entityManager;

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消