Results 1 to 2 of 2

Thread: Simple finder SQL Error

  1. #1

    Default Simple finder SQL Error

    Hi,

    I'm trying to add a custom finder to one of my Roo app controler and I get an error from the Hibernate parser when applying the following sql order:

    SELECT * FROM Cdr o where o.creation_date > DATE_SUB ( now(), INTERVAL 2 MONTH )

    the error is:

    ERROR org.hibernate.hql.PARSER - line 1:72: unexpected token: 2

    Is that only due to Hibernate or is it related to the way it is configured by Roo?

    Thanks

  2. #2
    Join Date
    Dec 2005
    Posts
    930

    Default

    This appears a Hibernate issue. Roo just passes the SQL to Hibernate for execution. Have you tried EclipseLink? It is the reference implementation of JPA.
    Alan
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •