[hibernate-dev] EntityPersister and Queryable
Gail Badner
gbadner at redhat.com
Tue May 20 17:33:49 EDT 2014
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
More information about the hibernate-dev
mailing list