GORM JPA Plugin

Dynamic Finders: find(All)By* (core feature of GORM) is not working on GORM-JPA plugin-0.7

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    OS - Ubuntu Linux 9.10
    Grails - 1.2.1
    plugins - app-engine 0.8.8, gorm-jpa-0.7
    Google App Engine Development kit - appengine-java-sdk-1.3.1

Description

I am facing out problems with Dynamic Finders (like findBy*, findAllBy*). It returns empty list or null object.
By somehow I figured out the problem and (a quick fix).

localArgs?.eachWithIndex {val, int i -> if(val instanceof GString) val = val.toString() // query.setParameter(i+1, val) // here is the problem: Line No. 201 query.setParameter(i, val) // fix }

I also have attached the file with the fix.

Activity

Hide
Oliver Schneider added a comment - - edited

Issue is still present in 0.7.1. Fix works fine for 0.7.1 also.

Show
Oliver Schneider added a comment - - edited Issue is still present in 0.7.1. Fix works fine for 0.7.1 also.
Hide
Blake Barnes added a comment -

Hi--is there any update on this issue? Would be great for the fix to be placed into an official release so that I don't have to apply this fix on every new Grails AppEngine project I start. Thanks!

Show
Blake Barnes added a comment - Hi--is there any update on this issue? Would be great for the fix to be placed into an official release so that I don't have to apply this fix on every new Grails AppEngine project I start. Thanks!
Hide
Graeme Rocher added a comment -

A re-write of the JPA plugin is currently in development, stay tuned

Show
Graeme Rocher added a comment - A re-write of the JPA plugin is currently in development, stay tuned
Hide
Blake Barnes added a comment -

Graeme--this is great news! Do you have a timeframe you can give us?

Show
Blake Barnes added a comment - Graeme--this is great news! Do you have a timeframe you can give us?

People

Vote (4)
Watch (3)

Dates

  • Created:
    Updated: