Chapter 4: Compile error because of Customer30_

  1 post   Feedicon  
Replies: 0 - Last Post: November 27, 2011 15:22
by: bolidor
showing 1 - 1 of 1
 
Posted: November 27, 2011 15:22 by bolidor
Hi!
I initially checked out all examples and I tried to build them with the parent pom. As I did this, I got the following error in Maven:

-------------------------------------------------------------
COMPILATION ERROR :
-------------------------------------------------------------
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[127,50] error: cannot find symbol
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[159,56] error: cannot find symbol
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[192,80] error: cannot find symbol
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[198,80] error: cannot find symbol
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[217,105] error: cannot find symbol
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[217,80] error: cannot find symbol
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[229,86] error: cannot find symbol
org/beginningee6/book/chapter04/ex30/CriteriaAPI30Test.java:[241,82] error: cannot find symbol
8 errors


The first of these lines is:
query.select(c).where(builder.greaterThan(c.get(Customer30_.age), 40));

What did I do wrong?
Replies: 0 - Last Post: November 27, 2011 15:22
by: bolidor
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close