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
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.
Hi,
registering a custom
JPAODataTransactionFactory
to theJPAODataRequestContext
does not have any effect, it defaults back toJPAODataDefaultTransactionFactory
because it doesn't get copied among the other customizable properties likeJPACUDRequestHandler
,EntityManager
etc. inJPAODataRequestContextImpl#copyContextValues(JPAODataRequestContextAccess)
. A simplethis.transactionFactory = context.getTransactionFactory();
will do the trick.