JPA

Multitenancy using Spring data JPA and hibernate

Vikas Verma
Introduction What is multitenancy You can see the definition of the multitenancy from the wiki. As it says - Software multitenancy is a software architecture in which a single instance of software runs on a server and serves multiple tenants. Systems designed in such manner are “shared” (rather than “dedicated” or “isolated”). A tenant is a group of users who share a common access with specific privileges to the software instance.

JPA EntityListner example with Spring Boot 1.5.1

Vikas Verma
Introduction To audit any transaction table you can use EntityListener Annotation of the JPA. JPA provide the EntityListener annotations that attach a listener class with the entity that you want to audit. What is audit table ? Audit Tables are used to track transactions against a particular table or tables. They allow you to see an ongoing “log” for future use. There may be users and/or applications that have access to insert, update, and delete out of that table.