marcelotmelo wrote:
I have the same structure than you, all my entity classes are inherited from a base class, which has 4 base properties, one for the primary key, two for auditing and one for description.
ok.
Quote:
Anyway, I've succesfully renamed the ordinary columns for my super properties, but I could only change the name of the properties, I would like to change the method itself, making it return super.dosomething(). Is it doable via a custom reverse engineering strategy?
no, that is not the job of the reverse engineering but the job of the code generation. And thus you will need to customize the templates used to create the pojos so that they contain the super call or simply is not generated. (the last part should actually be possible by putting a <meta attribute="gen-property">false</meta> in reveng.xml or similar in a custom reveng strategy)
Quote:
Is it also possible to supress the setter methods for these properties (I need the getters because that's where the annotations go, but the setters are the same as the super.
see above.
Quote:
Also, I would like that all the represented PK's on the classes (ids) would have its property renamed to "id" (without the setters again, since they're all the same type and it's already on the super class), even though there are differente column names. You've mentioned it on your early posts, but how did you do it? AS told before, I've managed to do it to regular columns via the columnToPropertyName, but didn't figure out how to do it to the primary keys.
columnToPropertyName shoud definitly also work for primary keys. which version are you using ?
Could you show the table layout, reveng.xml and the generated result if it does not work in the latest version.