code_junkie

I need help with this error: java.lang.NoSuchMethodError

Nov 12th, 2011
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. String queryString = "SELECT b , sum(v.votedPoints) as votedPoint " +
  2. " FROM Bookmarks b " +
  3. " LEFT OUTER JOIN Votes v " +
  4. " on (v.organizationId = b.organizationId) " +
  5. "WHERE b.userId = 101 " +
  6. "GROUP BY b.organizationId " +
  7. "ORDER BY votedPoint ascending ";
  8. EntityManager em = getEntityManager();
  9. Query query = em.createQuery(queryString);
  10. query.setFirstResult(start);
  11. query.setMaxResults(numRecords);
  12. List results = query.getResultList();
  13.  
  14. "
  15.  
  16. @OneToMany(mappedBy = "bookmarkId")
  17. private Collection votesCollection;
  18.  
  19. @JoinColumn(name = "bookmark_id", referencedColumnName = "bookmark_id")
  20. @ManyToOne
  21. [private Bookmarks bookmarkId;
  22.  
  23. tring queryString = "SELECT b, sum(v.votedPoints) " +
  24. "FROM Bookmarks b " +
  25. "LEFT OUTER JOIN b.votesCollection v " +
  26. "WHERE b.userId = 101 " +
  27. "GROUP BY b.organizationId " +
  28. "ORDER BY sum(v.votedPoints) asc ";
  29.  
  30. recover(RecognitionException, Bitset)
  31.  
  32. java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl/BitSet;)V
Add Comment
Please, Sign In to add comment