I am having fun trying this tool out, but I have a question.
When Roo creates a new entity (as an example I will use a class called Cycle) usinga Cycle_Roo_Entity.aj file is created which contains (among other things) an id field and version field which are mapped to the columns "id" and "version". Is there a way to customize this?Code:new persistent class jpa -name ~.Cycle
In my particular case I do not have much control over the database and in most cases the only version column in the table would probably be an "update_date" column (which besides having a different column name is also a date instead of integer). Furthermore, our id column is not always called "id". For instance on an table called CYCLE the id field may be called "CYCLE_ID".
I tried to make edits the Cycle_Roo_Entity.aj file by hand in eclipse but Roo just changed them back.
Thanks,
Chris


Reply With Quote