tags:

views:

29

answers:

1

In JPA, you can inject an EntityManager with the @PersistenceContext annotation:

@PersistenceContext
private EntityManager entityManager;

What is the JDO equivalent of this for a PersistenceManager?

@????
private PersistenceManager persistenceManager;
+1  A: 

There is no standard equivalent AFAIK. But you could use Guice or Spring JDO Support.

Pascal Thivent