I want to have an @Entity that is only used for testing. This is because I want to test a @MappedSupertype without creating a dependency to a real entity that extends it.
The source file is in src/test/java but when running the application in Eclipse, the entity is discovered (and for example creates a table on schema export). Is there something like @Profile("test") where I can configure the entity outside of the application (i.e. in the test source)?