Menu

#33 SecureEntitymanager should throw IllegalArgumentException instead of PersistenceException

0.4.1
closed-fixed
nobody
None
5
2016-11-30
2016-06-05
No

Hello! I'm trying to integrate jpasecurity with Spring Data. Spring Data allows you to define interfaces that automatically create named queries based on the convention of the method name. I am getting a PersistenceException "No named query with name {the query name}" bubbled up from the SecureEntityManager from jpasecurity because Spring is expecting an IllegalArgumentException per the EntityManager#createNamedQuery javadocs.

I believe jpasecurity should honor the specs and I have included what I think is the patch with unit tests to fix the issue. Please let me know if you can publish a release with this patch. Thanks!

1 Attachments

Discussion

  • Arne Limburg

    Arne Limburg - 2016-11-30
    • status: open --> closed-fixed
     
  • Arne Limburg

    Arne Limburg - 2016-11-30

    I think, Stephan applied the patch and fixed the bug. Thank you, Deryl for reporting and fixing.

     

Log in to post a comment.