Criteria querys is the perfect match for dynamic querys and type safe too
El nov 30, 2012 10:25 AM, "Howard W. Smith, Jr." <smithh032...@gmail.com>
escribió:

> Interesting. No, I'm not using criteria queries. Majority of my queries are
> dynamic SQL queries via persistence query.createQuery(), but just recently,
> I moved some of the more popular queries in the project to @namedQuery.
>
> On Fri, Nov 30, 2012 at 10:38 AM, José Luis Cetina <maxtorz...@gmail.com
> >wrote:
>
> > jpa-modelgen its for generate the metamodel for you entity classes, with
> > this metamodel you can do query's using criteriasquerys, criteriabuilder
> > etc, with this you can create sql query's in typa-safe mode.
> >
> > Have you used, criteria querys/builder in JPA?
> >
> >
> > 2012/11/30 smithh032772 <smithh032...@gmail.com>
> >
> > > Jose/Romain,
> > >
> > > What was the outcome of this? All I did was add the 'one' eclipselink
> > > (2.3.2) JAR in tomee /lib folder (and 'not' tomee /webapp/lib), and of
> > > course, I specified eclipselink as the provider in persistence.xml.
> > >
> > > After downloading eclipselink from their website, I briefly examined
> the
> > > zip/download file, and a brief examination, I concluded that I only
> > needed
> > > the one JAR file instead of the following:
> > >
> > > (eclipselink 2.3.2.jar, eclipselink-jpa-modelgen_2.3.2.jar,
> > > javax.persistence_2.0.3.jar)
> > >
> > > what is the purpose/need for the jpa-modelgen? is that for weaving?
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://openejb.979440.n4.nabble.com/TomEE-and-EclipseLink-tp4593329p4659017.html
> > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > >
> >
> >
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>

Reply via email to