Extended data modelling concepts

It's easy to model with OOMEGA. For example you can use our textual modelling language SDL.

@entity (cid = 1002) class Person
{
  @attribute @notnull String firstname;
  @attribute @notnull String lastname;
  @attribute Address birthPlace;

  @association (foreign="children", mult="0..2")
    Set<Person> parents;
  @association (foreign="parents") Set<Person> children;
  @association (foreign="spouse") Person spouse;

  public String toString() {
    return getName()!=null ? getName() : "<no name>";
  }
}

Our modelling concepts are powerful. You can create

  • user-defined attribute classes (cp. Address type of field birthplace)
  • fine-granular multiplicities (cp. field parents),
  • bidirectional associations (cp. fields parents and children),
  • self-connected associations (cp. field spouse),
  • and others like aggregations, compositions, methods and class inheritance.

Please note that methods are implemented in Java. Anyhow, the implementation can rely on automatically generated getter and setter methods (cp. getName).

>> Show next feature
>> Back to the feature list