[
https://issues.apache.org/jira/browse/JDO-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612271#comment-13612271
]
Craig L Russell commented on JDO-678:
-------------------------------------
Now using DataNucleus 3.2, the persistence manager returns properties:
Set<Map.Entry<String, Object>> properties =
pm.getProperties().entrySet();
for (Map.Entry<String, Object> entry: properties) {
System.out.println("getProperties returned: " + entry.getKey() +
":" + entry.getValue());
}
getProperties returned: datanucleus.ignorecache:false
getProperties returned:
datanucleus.store.allowreferenceswithnoimplementations:false
getProperties returned: javax.persistence.lock.timeout:0
getProperties returned: datanucleus.detachalloncommit:false
getProperties returned: datanucleus.persistencebyreachabilityatcommit:true
getProperties returned: datanucleus.multithreaded:false
getProperties returned: datanucleus.datastorereadtimeout:0
getProperties returned: datanucleus.detachallonrollback:false
getProperties returned: datanucleus.maxfetchdepth:1
getProperties returned: datanucleus.detachaswrapped:false
getProperties returned: datanucleus.copyonattach:true
getProperties returned: datanucleus.datastorewritetimeout:0
getProperties returned: datanucleus.managerelationshipschecks:true
getProperties returned: datanucleus.findobject.validatewhencached:true
getProperties returned: javax.persistence.query.timeout:0
getProperties returned: datanucleus.flush.mode:null
getProperties returned: datanucleus.allowattachoftransient:false
getProperties returned: datanucleus.allowcallbacks:true
getProperties returned: datanucleus.serializeread:false
getProperties returned: datanucleus.detachonclose:false
getProperties returned: datanucleus.managerelationships:true
There are no javax.jdo properties in the returned list of properties.
I will check in the test case so we can discuss some specifics.
> Ability to set properties on PersistenceManager
> -----------------------------------------------
>
> Key: JDO-678
> URL: https://issues.apache.org/jira/browse/JDO-678
> Project: JDO
> Issue Type: Improvement
> Components: api, specification, tck
> Affects Versions: JDO 3 (3.0)
> Reporter: Andy Jefferson
> Assignee: Craig L Russell
> Fix For: JDO 3 maintenance release 1 (3.1)
>
> Attachments: jdo-678.patch
>
>
> It would be desirable to be able to set properties on the PersistenceManager,
> so as to be able to configure/change behaviour for a PM. Currently the PM is
> generated with particular configuration (from the PMF) and allows specific
> options to be set. But what about vendor extensions ? Having a general
> setProperty/getProperty/getSupportedProperties would be useful, and could
> also encompass the existing detachAllOnCommit, IgnoreCache, etc settings.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira