Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] question on Criteria API

Doug,
    Hi,
    1) Here is an example generation of "_" java files without corresponding compiled class files (-proc:only) - placed at the cmd root
    Depending on your IDE, you will be able to automatically generate these as long as the services file is in your classpath.
javac -processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor -proc:only -classpath lib/eclipselink.jar;lib/javax.persistence_2.0_preview.jar;punit src/org/eclipse/persistence/testing/models/jpa/metamodel/*.java
....
Note: Building metadata class for round element: org.eclipse.persistence.testing.models.jpa.metamodel.ArrayProcessor
....

    2) CriteriaBuilder is the new replacement rename for QueryBuilder in the Oct 2009 API version of JSR-317.
    The specification was modified around 7 Oct to use CriteriaBuilder - see the latest PFD version of the spec when it arrives on the JSR site as it started on 22 Sept and has not reached a finish date yet as the final approval ballot was marked on 30 Nov - I would expect it out shortly.
    Because of this, on the JSR-317 site - PFD-2 version from 31 Aug 2009 is still listing QueryBuilder as the interface in section 6.3.1 p.199 - this will change.
http://jcp.org/aboutJava/communityprocess/pfd/jsr317/index2.html


I checked with my Metamodel issue notes and found the following switch in our codebase...

 /trunk/jpa/plugins/javax.persistence/src/javax/persistence/criteria/QueryBuilder.java 5483  deleted
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=5483
 /trunk/jpa/plugins/javax.persistence/src/javax/persistence/criteria/CriteriaBuilder.java 5488   (+1456) new
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=5488
https://bugs.eclipse.org/bugs/show_bug.cgi?id=291598

   thank you
   /michael

Daoqi(Doug) Yang wrote:

I just downloaded EclipseLink 2.0.0 RC1 and have two questions on the Criteria API:


1)      Where can I find the documentation on how to generate the static canonical metamodel classes?


2)      This version of EclipseLink still has CriteriaBuilder, vs. QueryBuilder as in the JPA 2.0 spec. When will this be changed?


Thanks.


_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top