Skip to content

Latest commit

 

History

History

micronaut-hibernate-jpa

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Micronaut Hibernate JPA with JUnit5 test using both QuickPerf JVM and SQL annotations.

At the beginning of each test, a SQL script defined in the import.sql file is executed. This script inserts two players and their team in the database.

Global annotations are configured in QuickPerfConfiguration. These annotations apply on each test.

For QuickPerf to be able to spy on your SQL requests, it needs a way to proxy your DataSource via ttddyy. In this example, this is done inside the MicronautStandardServiceRegistryFactory factory class that replaces the default Hibernate StandardServiceRegistry with one proxying your DataSource.