SHARE
TWEET

Untitled

a guest Jul 31st, 2010 62 Never
  1. [ERROR] /home/coub/projects/pi/src/main/scala/pi/snippet/HelloWorld.scala:22: error: wrong number of arguments for constructor NamedQuery: ()javax.persistence.NamedQuery
  2. [INFO]     new NamedQuery(name = "findAll", query="select p from Person p"),
  3. [INFO]     ^
  4. [ERROR] /home/coub/projects/pi/src/main/scala/pi/snippet/HelloWorld.scala:21: error: attribute argument needs to be a constant; found: Array(new NamedQuery(name = "findAll", query = "select p from Person p"), new NamedQuery(name = "findTheOne", query = "select p from Person p where p.name = 'Neo'"))
  5. [INFO] @NamedQueries(Array(
  6. [INFO]               ^
RAW Paste Data
Top