File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes JPA criteriaBuilder method not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA criteriaBuilder method not found" Watch "JPA criteriaBuilder method not found" New topic

JPA criteriaBuilder method not found

adam smith ii

Joined: Feb 04, 2010
Posts: 20
I believe I am trying to add a predicate to an EJB query and am getting a method signature error. Rather than describe an Expression,
my code describes a criteria.Path<java.lang.Object> I am trying to follow examples but am pretty confused.

The compile error is on line 72 as described above.

The Salesrecords entity follows:

James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
Not sure what your trying to do, but the line should rpobably be,

typedQuery.where("senttogrower"), new Integer(arg1)));

Your error is probably from the int, but including the full error would help.

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
adam smith ii

Joined: Feb 04, 2010
Posts: 20
Thanks for the suggestion, I tried it, but it probably solves a different problem. I use Netbeans so it was a bit of work to get the error message via the command line.

I agree. Here's the link:
subject: JPA criteriaBuilder method not found
jQuery in Action, 3rd edition