Binder class is getting bigger and bigger (more than 3300 lines ATM), it is really hard to understand and maintain it.
To better organize this class ( instead of splitting this to some smaller binder classes, which, btw, i think it is the way to go in a long term ), I'm making the following changes:
- group methods in this class by purpose
the methods are grouped in the following order:
1. entity binding methods
2. identifier binding methods
3. attributes binding methods
4. relational binding methods
5. instance helper methods
6. static helper methods
- uniform method parameters order
lots of bind methods require at least two parameter, the binding target and source object, so, here I'd like to have a uniform parameter order – (binding, source)
- moving type binding / resolve methods into HibernateTypeHelper
of course, this HibernateTypeHelper still need to be refactoed
|