Basic Concepts

Home > Query Language > Basic Concepts

In contrary to other systems on the market, OOMEGA's query language is neither defined via an object-oriented API nor via a string-typed language: it's just a metamodel. There's also a concrete syntax available which perfectly integrates with Java.

We start with a simple example: Let's find all married persons whose last name contains "Mer".

Query(
   from(Person.CID),
   where(
      and(
         like(P(Person.P.lastname), "*Mer*"),
         exists(P(Person.P.spouse))
      )
   )
);

Next chapter: Path Expressions

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.