title: Error instantiating bean of type [io.micronaut.configuration.hibernate.jpa.TransactionalSession$Intercepted]
body: <p>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</p>
  
  <p>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)</p>
  
  <pre><code>open class IdGeneratorImpl() : IdGenerator {
  
  @PersistenceContext
  private var entityManager: EntityManager? = null
  
  open fun IdGeneratorImpl(@CurrentSession entityManager: EntityManager?) {
      this.entityManager = entityManager
  }
  </code></pre>
  
  <p>the application also has included the following dependencies </p>
  
  <p>implementation "io.micronaut.configuration:micronaut-hibernate jpa:2.0.0.M1"</p>
  
  <p>implementation "io.micronaut.data:micronaut-data-hibernate-jpa:2.0.0.M2" </p>