Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Jul 31st, 2010  |  syntax: None  |  size: 0.60 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
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 = 'Neo'"))
  5. [INFO] @NamedQueries(Array(
  6. [INFO]               ^
clone this paste RAW Paste Data