fahdarhalai / dac4j

Data Access Control for Java
1 stars 0 forks source link

Parse JPQL to be able to seamlessly modify the query string #14

Open fahdarhalai opened 2 years ago

fahdarhalai commented 2 years ago

User-defined Query Methods can take several forms. The challenge consist of the ability to add the dynamically generated Access Control WHERE clause ( almost complete in #5 ) to the query string without breaking its logical structure.

Other JPQL query parts may need to be adapted or added if not defined by the developer, for instance:

This requires using or developing a parser for JPQL queries (HQL, or SQL), which can easily distructure the query into the following major parts:

( ! ) This issue currently blocks further development of #5 .