Jul 27th, 2012, 09:16 AM
Custom Entity attribute names when Reverse Engineering Database?
Wondering if there is a way this can be accomplished with an existing config mechanism, or a adjustment of the dbre command...
Lets say I have an Employee table in our database, and using our naming conventions for column names we have the following columns...
By default, when i dbre this table, it will give me the following attributes of the entity...
So by default when i want to grab the employee id i have to reference it as employee.employeeId, and so on for the other attributes.
Preferably, I would like to be able to use employee.id instead.
Is there a way to have the dbre generate the following attribute names, without changing the column names in the table?
Jul 28th, 2012, 08:57 AM
Check out https://jira.springsource.org/browse/ROO-2911
Originally Posted by iojohnso
I was able to extend DBRE to allow remapping of table/entity names using regex and/or a groovy script and it might be possible to do something similar with column names
Jul 29th, 2012, 12:10 PM
Thanks chorrylan, looks like this could be a solution.
Tags for this Thread