Skip to content

[hibernate]: EntityManagerFactory is not accessible via service registry #1476

Closed

Description

@jknack
{
   install(new HibernateModule());
 
   get("/", ctx -> {
    EntityManagerFactory emf = require(EntityManagerFactory.class);
   })
}

Stacktrace:

io.jooby.RegistryException: Service not found: javax.persistence.EntityManagerFactory
	at io.jooby.Jooby.require(Jooby.java:501)
	at io.jooby.Jooby.require(Jooby.java:493)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions