A methodinterceptor for internationalising a hibernate model that wants to be added to the or updated to the database. The method looks for any methods on the class model of the form LocalisedXXXXX where XXXXX is the name of the field to be internationlised. The fields are then read from the given model and added to the label table with the associated language code and name of the field classified by the class. The method leaves the model intact.
@param invocation method to be intercepted, typically saveandupdate
@return return val of method to be invoked
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.