Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 31st, 2010  |  syntax: None  |  size: 0.60 KB  |  hits: 58  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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]               ^