Create, explore and manipulate models with OOMEGA's Java APIAs stated earlier - metamodels are class models. Models are objects. Objects can be created and manipulated with OOMEGA's Java API. The Java API is powerful and elegant. Please convince yourself by studying the features regarding object persistency. Moreover OOMEGA provides a generic way to write down objects naturally in the Java environment. Consider the following entity class:
@entity (cid = 1002) class Person
{
@attribute @notnull String firstname;
@attribute @notnull String lastname;
@attribute Address birthPlace;
}
Then you can instantiate a Person object like this.
Person(
firstname("Christian"),
lastname("Merenda")
);
Please note that there's no new operator necessary. Besides during object instantiation you can decide which fields are immediately set. Do you recognize a similarity to XML? >> Show next feature>> Back to the feature list |