[hibernate-dev] EntityPersister and Queryable

Steve Ebersole steve at hibernate.org
Wed May 21 08:24:23 EDT 2014


To be honest, I am not sure what you are asking.  Persisters are not meant
for application use.


On Tue, May 20, 2014 at 4:33 PM, Gail Badner <gbadner at redhat.com> wrote:

> Because AbstractEntityPersister implements Queryable (but EntityPersister
> does not), core does something like this to get access to Queryable
> interface methods:
>
>     final Queryable queryable = (Queryable)
> sessionFactory.getEntityPersister( entityName );
>
> Is this an acceptable way for an application to get access to an entity
> persister's Queryable interface or is there some explicit SPI that should
> be used?
>
> Thanks,
> Gail
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list