开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜