You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mauro2java2011 <ma...@gmail.com> on 2014/10/23 17:04:32 UTC
CRUD Primefaces generator netbeans 8.0.1 for tomee plus or plume
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 ?
Workaround for it?
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.
Re: CRUD Primefaces generator netbeans 8.0.1 for tomee plus or plume
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Next the jar ;)
http://repo1.maven.org/maven2/org/apache/openejb/javaee-api/6.0-6/
Le 23 oct. 2014 23:06, "mauro2java2011" <ma...@gmail.com> a écrit :
> But the javaee-api.zip from ???
> Il 23/ott/2014 22:37 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
> ml-node+s979440n4672604h99@n4.nabble.com> ha scritto:
>
> > Geronimo jpa from the unzipped javaee-api zip replacing javaee-api jar
> > Le 23 oct. 2014 22:30, "mauro2java2011" <[hidden email]
> > <http://user/SendEmail.jtp?type=node&node=4672604&i=0>> a écrit :
> >
> > > So what jars i have to replace ?
> > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672603.html
> > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672604.html
> > To unsubscribe from CRUD Primefaces generator netbeans 8.0.1 for tomee
> > plus or plume, click here
> > <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4672597&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2NzI1OTd8LTExMTcxODc2MjU=
> >
> > .
> > NAML
> > <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672605.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
Re: CRUD Primefaces generator netbeans 8.0.1 for tomee plus or
plume
Posted by mauro2java2011 <ma...@gmail.com>.
But the javaee-api.zip from ???
Il 23/ott/2014 22:37 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
ml-node+s979440n4672604h99@n4.nabble.com> ha scritto:
> Geronimo jpa from the unzipped javaee-api zip replacing javaee-api jar
> Le 23 oct. 2014 22:30, "mauro2java2011" <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4672604&i=0>> a écrit :
>
> > So what jars i have to replace ?
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672603.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672604.html
> To unsubscribe from CRUD Primefaces generator netbeans 8.0.1 for tomee
> plus or plume, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4672597&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2NzI1OTd8LTExMTcxODc2MjU=>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672605.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: CRUD Primefaces generator netbeans 8.0.1 for tomee plus or plume
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Geronimo jpa from the unzipped javaee-api zip replacing javaee-api jar
Le 23 oct. 2014 22:30, "mauro2java2011" <ma...@gmail.com> a écrit :
> So what jars i have to replace ?
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672603.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Re: CRUD Primefaces generator netbeans 8.0.1 for tomee plus or
plume
Posted by mauro2java2011 <ma...@gmail.com>.
So what jars i have to replace ?
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/CRUD-Primefaces-generator-netbeans-8-0-1-for-tomee-plus-or-plume-tp4672597p4672603.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: CRUD Primefaces generator netbeans 8.0.1 for tomee plus or plume
Posted by Romain Manni-Bucau <rm...@tomitribe.com>.
2014-10-23 17:04 GMT+02:00 mauro2java2011 <ma...@gmail.com>:
> 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.