Composite Type

Each composite instance is of a particular CompositeType. That is an interface, which inherits a subtype of org.qi4j.composite.Composite, known as a Composite Meta Type, and typically a domain interface. Example;
public interface BankAccountComposite extends BankAccount, EntityComposite
{}

public interface BankAccount
{
    Money checkBalance();
}

In the above example the CompositeType is the BankAccountComposite which is a subtype of BankAccount and EntityComposite.

Qi4j and the Qi4j logo are trademarks of Richard Öberg, Niclas Hedhman and the members of the Qi4j Core Team. See Qi4j licensing for more information.
Powered by SiteVisionexternal link.