added named query api to entity manager/factory