Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA criteriaBuilder method not found

 
adam smith ii
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what your trying to do, but the line should rpobably be,

typedQuery.where(criteriaBuilder.ge(from.get("senttogrower"), new Integer(arg1)));

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




 
adam smith ii
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James,
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic