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

René Schöne's avatar
René Schöne committed
17
18
19
public {{javaType}} {{parentTypeName}}.get{{name}}() {
  return get{{internalName}}();
}