Book a Demo

Author Topic: camel case for java attributes generation  (Read 3072 times)

mjuteau

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
camel case for java attributes generation
« on: February 06, 2008, 06:23:02 am »
Hi, I just installed the latest EA release, transformed a PIM into a java model. Private class attributes in the PIM were correctly transformed into javabeans-compliant attributes. Unfortunately, camel-case generation for accessor methods did not happen! The second word initial is lower-case. This used to work right out of the box. I looked at the java transform templates and did not see the camel-case macro used anywhere. How do I fix this? I know nothing about EA's scripting language. Sample script please? :)
Miguel

The current script under 'Attribute_AsProperties:

%if classStereotype=="enumeration"%
%endTemplate%

$type=%CONVERT_TYPE("Java",attType)%
%Properties(attName,$type)%

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: camel case for java attributes generation
« Reply #1 on: February 07, 2008, 04:31:17 pm »
Try checking Tools | Options | Source Code Engineering | Capitalized Attribute Name for Properties.