Integration jpasecurity with playframework (2.3) does an issue when I use constructor in query (SELECT new xx.xx.User(u.id, u.name) FROM User u).
Without jpasecurity this query works.
This query also works fine with 0.4.0.
For me problem is in class net.sf.jpasecurity.jpql.compiler.JpqlCompiler.ConstructorArgReturnTypeVisitor.visit and method Class.forName in line: valueHolder.setValue(Class.forName(node.toString()));
I propose:
valueHolder.setValue(Thread.currentThread().getContextClassLoader().loadClass(node.toString()));
or using two of them in this method (Class.forName and Thread.currentThread().getContextClassLoader().loadClass).
witch works fine for me (integration with playframework)
javax.persistence.PersistenceException: Mapping not found for type
Thanks for reporting this. I applied your suggested change to trunk.
Wow. Thank you for very the very quick response!
Now, for me, is well!
2014-10-03 15:54 GMT+02:00 Arne Limburg arnelim@users.sf.net:
Related
Bugs:
#32