The following example instantiates a {@code FoodMart} object as a schemathat contains tables called {@code EMPS} and {@code DEPTS} based on theobject's fields.
{@code schemas: [}{ name: "foodmart", type: "custom", factory: "net.hydromatic.optiq.impl.java.ReflectiveSchema$Factory", operand: { class: "com.acme.FoodMart", staticMethod: "instance" } } ] class FoodMart { public static final FoodMart instance() { return new FoodMart(); } Employee[] EMPS; Department[] DEPTS; } }
|
|