The following hints are required to run jpa with hibernate.

{
  "interfaces": [
    "org.hibernate.SessionFactory",
    "org.springframework.orm.jpa.EntityManagerFactoryInfo"
  ]
},
{
  "interfaces": [
    "org.hibernate.Session",
    "org.springframework.orm.jpa.EntityManagerProxy"
  ]
}

See: spring-aot-smoke-tests#113

Comment From: sdeleuze

@snicoll @jhoeller Do they seem relevant proxy hints we can't infer and that we should configure?

Comment From: jhoeller

The combination of SessionFactory and EntityManagerProxy seems odd, is that really necessary in that combination?

The other two are obviously the EMF/EM proxies that we create in our JPA setup arrangement. For the EMF proxy, we might be able to infer it from a narrowed AbstractEntityManagerFactoryBean.getObjectType() implementation. For the EM proxies, I'm not quite sure where to infer those since we typically create those on demand (i.e. not as beans).

Comment From: christophstrobl

@jhoeller good catch - thanks - my bad, yes we can do without that one. I'll update the description

Comment From: sdeleuze

Ok let's configure hints for those for M6 since that's the last JPA blocker, I will create a follow-up issue for RC1 to see if we can infer them.