~gugljafa/play/functionalbugs

« back to all changes in this revision

Viewing changes to framework/src/play/db/jpa/JPAPlugin.java

  • Committer: guillaume
  • Date: 2009-12-07 15:07:43 UTC
  • Revision ID: guillaume@gbo-mac-20091207150743-1vrbn6ptre5ucll2
Fix Bug #492262 

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
            return null;
37
37
        }
38
38
        // TODO need to be more generic in order to work with JPASupport
39
 
        if(Model.class.isAssignableFrom(clazz)) {
 
39
        if(JPASupport.class.isAssignableFrom(clazz)) {
40
40
            String idKey = name + ".id"; 
41
41
            if(params.containsKey(idKey) && params.get(idKey).length > 0 && params.get(idKey)[0] != null && params.get(idKey)[0].trim().length() > 0) {
42
42
                String id = params.get(idKey)[0];