tokenComponent.mustache 535 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
  public {{parentTypeName}} {{parentTypeName}}.set{{name}}({{javaType}} value) {
    set{{internalName}}(value);
    {{#DependencyDefinitions}}
René Schöne's avatar
René Schöne committed
4
    for ({{targetParentTypeName}} target : get{{internalRelationPrefix}}TargetList()) {
René Schöne's avatar
René Schöne committed
5
6
7
8
9
10
11
12
13
14
15
16
17
      {{#targetUpdateDefinition}}
      if (target.{{updateMethod}}()) {
        target.{{writeMethod}}();
      }
      {{/targetUpdateDefinition}}
    }
    {{/DependencyDefinitions}}
    return this;
  }

  public {{javaType}} {{parentTypeName}}.get{{name}}() {
    return get{{internalName}}();
  }