I found a way how to solve this:
you can enter a parent for each entity:
Entity user = schema.addEntity("User");
...
user.setSuperclass("UserBase");
So you can implement the UserBase
as an abstract class.
public abstract class UserBase {
public String getFullName() {
return getFirst() + " " + getLast();
}
public abstract int getFirst();
public abstract int getLast();
}
The disadvantage here is, that you have to declare the generated getters as abstract methods to access them.