0

My database connections require us to apply certain identifying information for each request. Our current "getConnection" code generally contains something similar to connection.setClientInfo('OCSID.CLIENTID','my Client ID');.

I've recently began trying to setup spring-boot JPA repositories/entities to remove a lot of the boilerplate JDBC code, but so far I haven't found any documentation or examples that would allow me to configure the connection based on the client/user information of the user actually making the request. Is this something you can even do with a JPA setup?

billoot
  • 128
  • 15
  • You must first get (unwrap) the database connection from your JPA connection as described [here](https://stackoverflow.com/q/3493495/4808122). Than you can set everythink as usual. – Marmite Bomber Jul 15 '21 at 13:24

0 Answers0