Chapter 4: Compile error because of Customer30_

» Back to forum topics
  2 posts   Feedicon  
Replies: 1 - Last Post: February 18, 2013 01:01
by: gothica
showing 1 - 2 of 2
 
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?
 
Posted: February 18, 2013 01:01 by gothica
I downloaded the latest sources from svn, tried to compiled, but have the same problem in chapter 4.
Any solution?
Replies: 1 - Last Post: February 18, 2013 01:01
by: gothica