Defining Entities

The entity types are just simple interfaces with value methods, which have following requirements:

  • A return type, no void

  • No parameters

  • No type parameters

  • No declared checked exceptions

You are not limited otherwise. Use any types you want. Inheritance and generics are supported as well.

Entities

public interface Beeing<B>
{
	public B partner();
}

There is one base type (Beeing), one feature interface (Named) and three entities (Animal, Pet, Human).

Generated Code

The code generator takes care of the three entities, and its output looks like this:

Last updated