GORM JPA Plugin

findBy* are broken in gorm-jpa-0.5 with app engine 1.2.6

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

This bug is actually a data nucleus 1.0.2 and will be fixed in 1.0.4 which will hopefully be in the next app engine release

see details:
http://code.google.com/p/datanucleus-appengine/issues/detail?id=128

A temporary patch I did was to change the JpaPluginSupport.groovy to use named parameters instead of numbered.
The two lines of code that make it work are:

query.setParameter("${i+1}", val)
//query.setParameter(i+1, val)

and

def result = " = :${++state} "
//def result = " = ?${state++} "

Activity

Hide
Sebastien Pouillet added a comment -

I'm using Appengine SDK 1.3.0 and still have this issue. Which is the planned version of GAE SDK with the fix ?

Show
Sebastien Pouillet added a comment - I'm using Appengine SDK 1.3.0 and still have this issue. Which is the planned version of GAE SDK with the fix ?
Hide
Sebastien Pouillet added a comment - - edited

Is it not safer to patch the gorm-jpa plugin ?

Show
Sebastien Pouillet added a comment - - edited Is it not safer to patch the gorm-jpa plugin ?

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated: