I am trying to test jpa queries in a separate projects entities by quickly kicking off a spring boot project to generate a platform to insert data into a H2 database, run queries against it, and validate the results of these queries.
Because the separate project has a large entity base, I'd like to selectively pick out the entities that I want to per test.
I've tried to use the @EntityScan annotation for this, but it seems designed to pull entire packages, even if you just specify a class.
This strikes me as something that there must be a solution for, but I have so far been unable to find it.
Aucun commentaire:
Enregistrer un commentaire