Dear fguerios
If I have understood your question, I think that, in this case, reflection is not an important issue developers should worry about.
Instead, IMHO, we should spend our time thinking about a way to standardize the code. If you choose one way, then the whole team should follow it, not matter which way.
By the way, I think the first solution is the best because it is the way Hibernate do things and it is a nice OO way to standardize code. In the background, who garantees that Hibernate is not doing things like the second solution?
Marcos R. P.
|