Book a Demo

Author Topic: Code generation configuration  (Read 2059 times)

colin

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code generation configuration
« on: August 08, 2006, 12:01:09 pm »
Hi all,

We recenly purchased a number of licenties and are discovering the many benefits of this great tool. I'm new to EA so please bear with me.

I modelled a number of domain classes and subsequently generated the Java code which came out as expected. However I noticed that you can set a prefix on Linked classes m_$LinkedClass which goes against our coding conventions. I removed the prefix but now have the name of the linked class starting with a capital instead of lower case, I guess that's why the prefix was being used ;-).

Is there any way to adjust the names of the attributes so that they are conform our conventions?

examples

private ChildClass m_ChildClass = null;  X
private ChildClass ChildClass = null; X

private ChildClass childClass = null;  yeah :-)

Is this possible?

Colin

thomaskilian

  • Guest
Re: Code generation configuration
« Reply #1 on: August 08, 2006, 01:49:33 pm »
colin, EA makes use of a code generation framework which is built-in. You can modify these quite easily and probably manage to produce code in the way you expect it. Go to Setting/Code Gen Templates and read the help related to "code generation". If you're lucky, one of the Sparxians can give you a quick answer.