I have Implemented the dynamic projection for the filter method and to provide backward support preserved the existing filter method too.
In the overloaded method have added new Class type parameter of any of these three type (Interface, record or class) can be passed, which represent the Projected Entity type fields available in this type will be consider for select query.
All the projection behaviour provided by JPA will stay remain for this projection entity type.
Also added Example API and and its documentation in README.md file.
Solves: https://github.com/smartSenseSolutions/smartsense-java-commons/issues/11
I have Implemented the dynamic projection for the filter method and to provide backward support preserved the existing filter method too.
In the overloaded method have added new
Class
type parameter of any of these three type (Interface, record or class) can be passed, which represent the Projected Entity type fields available in this type will be consider for select query.All the projection behaviour provided by JPA will stay remain for this projection entity type.
Also added Example API and and its documentation in
README.md
file.