Relative Content

Tag Archive for hibernatejpaspring-data-jpa

release conenction in JPA multitenancy connection provider

How to handle exception in releaseConenction(String tenantIdentifier, Connection connetcion) method which implements MultiTenantConnectionProvider. How do we ensure the connetcion will be closed if there is any exceptionin this method.

Spring JPA doesnt persist data

I am trying to get an entry from the db.Change the value of one of the primary keys(outdt) and update it.Code below.I dont see any error on my console and db doesnt reflect the changes.Any insights would be appreciated!I have tried reading through jpa state documentation and detaching the entity before saving it back