[ 
https://issues.apache.org/jira/browse/ISIS-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676872#comment-13676872
 ] 

ASF subversion and git services commented on ISIS-422:
------------------------------------------------------

Commit 5372248448abc112bf0711667f887ccb2bfd7b59 in branch refs/heads/master 
from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=5372248 ]

ISIS-422: extending IsisJdoSupport to provide acccess to JDO PersistenceManager.

                
> Create Apache Isis API for custom Queries sent to the Objectstore by the 
> PersistenceManager
> -------------------------------------------------------------------------------------------
>
>                 Key: ISIS-422
>                 URL: https://issues.apache.org/jira/browse/ISIS-422
>             Project: Isis
>          Issue Type: New Feature
>          Components: Objectstore: JDO
>    Affects Versions: objectstore-jdo-1.1.0
>            Reporter: Oscar Bou
>            Assignee: Dan Haywood
>             Fix For: objectstore-jdo-1.2.0
>
>
> Current API does not support the option to define custom queries as SQL 
> strings that will be resolved by the current Objectstore.
> Proposed patch by Dan:
> Take a copy of IsisJdoSupport and IsisJdoSupportImpl.
> In IsisJdoSupport, add:
> PersistenceManager getJdoPersistenceManager();
> In IsisJdoSupportImpl, add:
> public PersistenceManager getJdoPersistenceManager() {
>    return getObjectStore().getPersistenceManager();
> }
> protected DataNucleusObjectStore getObjectStore() {
>    return (DataNucleusObjectStore)
> getPersistenceSession().getObjectStore();
> } 
> Then register this as a service and inject into your repositories etc.
> There's a plan for integrating Lucene into Isis. Then a lot
> of these adhoc queries may just disappear as a requirement.

--
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

Reply via email to