Book a Demo

Author Topic: java code gen, skip m_ prefix on collection?  (Read 3117 times)

sbeynon

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
java code gen, skip m_ prefix on collection?
« on: October 08, 2012, 08:32:47 am »
I'm sure it's trivial, though I don't understand the code generation templates well enough to avoid the "m_" prefix on a linked collection attribute.

I have RTFM & tried various things for the past hour. Can anyone point me in the right direction?

Thanks

sbeynon

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: java code gen, skip m_ prefix on collection?
« Reply #1 on: October 09, 2012, 05:50:31 am »
I figured it out, by updating the Linked Attribute declaration;

$type=%linkAttName%
$lcTypeName=%CONVERT_NAME($type, "pascal case", "camel case")%

%if linkAttRole != ""%
%linkAttRole%;
%else%
$lcTypeName
%endIf%

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: java code gen, skip m_ prefix on collection?
« Reply #2 on: October 17, 2012, 02:52:10 pm »
Tools | Options | Source Code Engineering | Attribute/Operations | Default name for associated...