Modifying DOM Collector Instances

The generated classes provide an API to get and set the different attributes and relationships of each instance.

We will use the following JDL entity declarations to illustrate the different ways to access and modify instances in Java and in Python:

entity Resource {
  // DOM [primary.keys] : [id]
  id String required,
  name String
}

entity ResourceCapacity {
  quantity Integer
}

relationship OneToOne {
  // DOM [affects.primary.key] : [true]
  ResourceCapacity{resource} to Resource{capacity}
}