Im new to micronnaut I am trying to include the following to run native queries, the application runs all fine, however all my functional test(s) annotated with @MincronautTest fails with the following message
Message: No bean of type [org.hibernate.SessionFactory] exists for the given qualifier: @Named('default'). Make sure the bean is not disabled by bean requirements (enable trace logging for 'io.micronaut.context.condition' to check) and if the bean is enabled then ensure the class is declared a bean and annotation processing is enabled (for Java and Kotlin the 'micronaut-inject-java' dependency should be configured as an annotation processor)
open class IdGeneratorImpl() : IdGenerator {
@PersistenceContext
private var entityManager: EntityManager? = null
open fun IdGeneratorImpl(@CurrentSession entityManager: EntityManager?) {
this.entityManager = entityManager
}
the application also has included the following dependencies
implementation "io.micronaut.configuration:micronaut-hibernate jpa:2.0.0.M1"
implementation "io.micronaut.data:micronaut-data-hibernate-jpa:2.0.0.M2"