openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jianfeng Mao <>
Subject AbstractStoreManager.flush() doesn't take into account of Write-locked but unchanged entities
Date Thu, 24 Apr 2008 05:19:28 GMT

I am writing a JPA provider for IBM U2 by extending the
AbstractStoreManager.  According to the OpenJPA doc and other sources such
the following code should force a version update on the CUSTOMER entity. But
it doesn't. Further examination of the AbstractStoreManager.flush() found
that it doesn't check if a SM requires a version update.  I am wondering if
this is by design or a overlook in implementatoin.  Please advise.

		CUSTOMER cust = em.find(CUSTOMER.class, "9");
		em.lock(cust, LockModeType.WRITE);

Jianfeng Mao

View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message