
Originally Posted by
bytor99999
First, wouldn't that repetitive code cause many extra calls to the database that aren't needed.
I don't think so, because at most one of those methods is called per request, and each of those methods (createForm, create, updateForm, and update) needs to put the reference data into the model in order to (re)display the form.

Originally Posted by
bytor99999
And secondly, can that code be refactored into just a private method that all the other methods call?
Yes, and that's one of the first things I do whenever I need to push those methods into my controller's Java class for any reason (e.g. to filter or sort the reference data in some special way). Having that code in a resuable private method in the AspectJ file would definitely cut down the work involved in pushing those methods in. How about you log it as an improvement?
Andrew Swan
"Now is the EJB of our discontent made glorious Spring"