Uploaded image for project: 'Hibernate OGM'
  1. OGM-1460

Remove calls to getTransaction() in tests for JTA environment

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.0.Beta1
    • Component/s: core, neo4j
    • Labels:
      None

      Description

      In OgmSessionImpl we have this code:

      	/**
      	 * In ORM 5.2, it is not possible anymore to call getTransaction() in a JTA environment anymore.
      	 *
      	 * A lot of our shared tests rely on this and we want to keep them working for Neo4j.
      	 */
      	@Override
      	public Transaction getTransaction() {
      		return ( (SharedSessionContractImplementor) delegate ).accessTransaction();
      	}
      

      We should remove it and make sure to update the tests so that they can work correctly

        Attachments

          Activity

            People

            • Assignee:
              davided Davide D'Alto
              Reporter:
              davided Davide D'Alto
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: