|
Home > Archive > Apache JDO Project > October 2006 > Proposal: alignment with JPA
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Proposal: alignment with JPA
|
|
| Craig L Russell 2006-10-10, 1:11 pm |
| | |
| Matthew Adams 2006-10-10, 7:11 pm |
| You might want to mention that PersistenceManagerFactory is also
equivalent to EntityManagerFactory and that PersistenceManager is
equivalent to EntityManager.
Is there a reason that you didn't capitalize the acronym JTA?
________________________________
From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM]
Sent: Tuesday, October 10, 2006 9:31 AM
To: JDO Expert Group; Apache JDO project
Subject: Proposal: alignment with JPA
Javadogs,
To align JDO better with JPA, I'd like to borrow some JPA
concepts and apply them to JDO, and document in JDO 2.1 (maintenance
release).
PersistenceManagerFactory is equivalent to a persistence unit.
PersistenceManagerFactories can be configured to be either
resource-local or jta, based on a PMF property:
javax.jdo.option.TransactionType. It defaults in managed environments to
JTA; and in non-managed environments to ResourceLocal.
PersistenceManager is equivalent to a persistence context. A
PersistenceManager is either resource-local or jta based on the
transaction type of its PersistenceManagerFactory. For jta
PersistenceManagers, the begin, commit, and rollback methods of the
corresponding Transaction throw JDOUserException. The only way to
complete transactions with jta PersistenceManagers is to use
container-managed transactions or UserTransaction.
Craig
Craig Russell
Architect, Sun Java Enterprise System
http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!
| |
| Craig L Russell 2006-10-10, 7:11 pm |
| | |
| Wes Biggs 2006-10-11, 1:11 pm |
| +1
Craig L Russell wrote:
> Javadogs,
>
> To align JDO better with JPA, I'd like to borrow some JPA concepts and
> apply them to JDO, and document in JDO 2.1 (maintenance release).
>
> PersistenceManagerFactory is equivalent to a persistence unit.
> PersistenceManagerFactories can be configured to be either
> resource-local or jta, based on a PMF property:
> javax.jdo.option.TransactionType. It defaults in managed environments
> to JTA; and in non-managed environments to ResourceLocal.
>
> PersistenceManager is equivalent to a persistence context. A
> PersistenceManager is either resource-local or jta based on the
> transaction type of its PersistenceManagerFactory. For jta
> PersistenceManagers, the begin, commit, and rollback methods of the
> corresponding Transaction throw JDOUserException. The only way to
> complete transactions with jta PersistenceManagers is to use
> container-managed transactions or UserTransaction.
>
> Craig
>
> Craig Russell
>
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
> 408 276-5638 mailto:Craig.Russell@sun.com
>
> P.S. A good JDO? O, Gasp!
>
>
|
|
|
|
|