Uploaded image for project: 'BatchEE'
  1. BatchEE
  2. BATCHEE-137

Make the JPAPersistenceManagerService extensible

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.5-incubating
    • None
    • jbatch-core
    • None

    Description

      Hi BatchEE-Team,

      right now it's quite difficult to extend the JPAPersistenceManagerService. It would be very helpful if you could change the visibility of the member variables to protected.

      // in the original version both members are private
       protected EntityManagerProvider emProvider;
       protected TransactionProvider txProvider;

      Furthermore, please do the same for performRollback

      protected Exception performRollback(Object tx, Exception originalException) {
       try {
       txProvider.rollback(tx, originalException);
       } catch (Exception exceptionDuringRollback) {
       LOGGER.log(Level.SEVERE,
       "Got an Exception while rolling back due to another Exception. Printing Rollback Exception and re-throwing original one",
       exceptionDuringRollback);
       }
       return originalException;
       }

      Thank you in advance

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            chberger Christian Berger

            Dates

              Created:
              Updated:

              Slack

                Issue deployment