Hi Guillaume, We have been discussing this issue (OGM query support via EM) earlier today on IRC, as it's definitely one which we should fix soon. As you started to work on it, do you have something worth sharing, which e.g. someone else could take that as starting point?
Thanks, --Gunnar 2013/11/6 Gunnar Morling <gun...@hibernate.org> > Hi, > > Maybe you could have OgmEntityManager implement > HibernateEntityManagerImplementor (its an interface, no class) and forward > it the HEMI methods to the wrapped EM instance? > > --Gunnar > > > > 2013/11/4 Guillaume SCHEIBEL <guillaume.schei...@gmail.com> > >> Hello, >> >> I have started to work on the support of the JPQL queries from the >> EntityManager and I'm facing some difficulties. >> I have look into the ORM as a start and so I have created >> >> public class OgmQueryImpl<X> extends AbstractQueryImpl<X> implements >> TypedQuery<X> { ... } >> >> Therefore, the AbstractQueryImpl class needs a constuctor >> using HibernateEntityManagerImplementor. Because OgmEntityManager is >> directly implementing EntityManager it cannot be done directly (HEMI is an >> implementation of the EntityManager interface). >> >> So I've tried to switch OgmEntityManager to >> extend AbstractEntityManagerImpl (which is an implementation of >> HibernateEntityManagerImplementor) but now >> OgmEntityManager#getEntityManagerFactory() must return an instance >> of EntityManagerFactoryImpl. >> The point is OgmEntityManagerFactory is implementing EntityManagerFactory >> and HibernateEntityManagerFactory and not EntityManagerFactoryImpl. >> >> I don't want to change the complete class hierarchie if there is a better >> option / choice. >> >> So any thoughts ? >> >> Guillaume >> _______________________________________________ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> > > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev