SAP / olingo-jpa-processor-v4

The JPA Processor fills the gap between Olingo V4 and the database, by providing a mapping between JPA metadata and OData metadata, generating queries and supporting the entity manipulations.
Apache License 2.0
123 stars 76 forks source link

Registering a custom JPAODataTransactionFactory defaults back to JPAODataDefaultTransactionFactory #138

Closed Meini777 closed 2 years ago

Meini777 commented 2 years ago

Hi,

registering a custom JPAODataTransactionFactory to the JPAODataRequestContext does not have any effect, it defaults back to JPAODataDefaultTransactionFactory because it doesn't get copied among the other customizable properties like JPACUDRequestHandler, EntityManager etc. in JPAODataRequestContextImpl#copyContextValues(JPAODataRequestContextAccess). A simplethis.transactionFactory = context.getTransactionFactory(); will do the trick.

wog48 commented 2 years ago

Hello,

I have created a new version 0.3.11 with your proposed correction. Thanks for supporting