Beans generated using the BeanGenerator have their final field names prefixed with a string. This is because of a hard coded string in the method 'add_properties' of class EmitUtils. The prefix is always: '$cglib_prop_'
I came accross a situation where I needed to dynamically duplicate an object model and feed this into existing legacy application. The legacy code used some sort of reflection mechanism to access bean properties. I had to recompile cglib applying a fix which makes it possible to alter the fieldname prefix.
My solution is attached. The default value is '$cglib_prop_'. Applications which rely on this prefix will still work.
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests - read-only"
sample solution
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests - read-only"