2014-10-23 17:04 GMT+02:00 mauro2java2011 <[email protected]>: > Hi. i have tired the CRUD primefaces generator embedded into netbeans 8.0.1. > > It create automatically the ejb facade and the jsf pages from entity . > But when i try with tomee plus or tomee plume i get error. > It use the criteriua query and so jpa2.1 > > The tomee + and plume use only jpa2.0 ?
sure. > Workaround for it? > If your persistence.xl doesn't use jpa 2.1 features just change jpa api (from javaee-api) and upgrade binaries. Otherwise no. > when i compile and deploy on tomee i get : > ......................................... > /home/utente_javaee7/NetBeansProjects/ptrovacanc/src/java/mauro/ejbs/AbstractFacade.java:59: > warning: [unchecked] unchecked method invocation: method createQuery in > interface EntityManager is applied to given types > javax.persistence.Query q = getEntityManager().createQuery(cq); > required: CriteriaQuery<T> > found: CriteriaQuery > where T is a type-variable: > T extends Object declared in method <T>createQuery(CriteriaQuery<T>) > > ....................................... > > so i think that it use jpa 2.0 and not 2.1 > workaround please? > > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597.html > Sent from the TomEE Users mailing list archive at Nabble.com.
