Not supported yet. Could you raise a ticket?
In the meantime, you can easily patch Isis yourself.
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.
~~~
Related, we have a sketchy plan to integrate Lucene into Isis. Then a lot
of these adhoc queries may just disappear as a requirement.
Cheers
Dan
On 5 June 2013 11:43, GESCONSULTOR - Óscar Bou <[email protected]>wrote:
>
> Hi to all.
>
> We need to implement generic JDO repositories with methods for our UI like
> "findByDatabaseId(String Id)" etc.
>
> Also, there's sometimes the need to be able to "compose" a query as a
> string instead of using one pre-declared on a Class with the JDO @Queries
> annotation (for example, for dinamically specify additional filters on the
> WHERE clause).
>
> The current Apache Isis Query API does not allow tho execute queries
> defined as String.
>
> What's the better way to access the JDO Persistence Manager used by Isis?
> Is there an Apache Isis API that we are missing?
>
> Thanks in advance!
>
>
>
>