Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-422

Create Apache Isis API for custom Queries sent to the Objectstore by the PersistenceManager

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              obou Oscar Bou
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: