Book a Demo

Author Topic: Problems with java code generation  (Read 2496 times)

pstein

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Problems with java code generation
« on: November 03, 2010, 11:50:36 pm »
When I want to generate java code from data class diagram then some but not all the variable have a prefix "m_"

How can I tell EA to omit the generation of these "m_" s?

Yes, in tools->options->source code enegineering I listed already in the appropriate entry field "Remove prefixes....":

....;m_;

but it didn't help.

How can I achieve it otherwise.

Furthermore I wonder how to generate also getXXX() and setXXX() for all variables. In  tools->options->source code enegineering->Java

there are already get and set prefixes defined.
Why does that not work? Do I have to check "Disable Language" additionally?

Peter

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problems with java code generation
« Reply #1 on: November 04, 2010, 08:50:28 am »
The remove prefixes option and property prefixes apply when creating properties from attributes.  This doesn't happen automatically when performing a generation, but you can run a transformation to make it happen.

Other than that, it is a matter of manually clicking the 'Property' checkbox on the attributes dialog.