Investigate possible enhancements to DaoHelpers and AllowedFields #387
sleberknight
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
DaoHelpers
utility class contains methods to add sorts to SQL queries (or possibly HQL or other similar query languages). It works in conjunction withAllowedFields
which is a (very) simple way to define which properties are allowed.This task is to investigate refactoring and/or redesigning these two classes (and
DaoHelpers
is a terrible name). For example, instead of having a bunch ofstatic
utility methods, would it be "better" to have an instance-based class that works in conjunction withAllowedFields
? Or maybe an instance-based class would delegate under the covers toDaoHelpers
but present a nicer, more fluent perhaps, interface for callers.Beta Was this translation helpful? Give feedback.
All reactions