Answering myself, Its possible (by extending CriteriaSupportHandler) but not worth, better stick with inheritance with current api(which is great).
Em seg, 18 de jul de 2016 11:28, Rafael Pestano <[email protected]> escreveu: > Hi guys, > > For sake of simplicity, I'd like to use the following construct: > > @Inject > CriteriaSupport<Entity> entityCriteria; > > > Is it possible? does it make sense for you? > > We already do that (generic query execution) with EntityManager itself but > there is no criteria support. > > thanks in advance. > > > > -- > Att, > > Rafael M. Pestano > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul > http://rpestano.wordpress.com/ > @realpestano >
