@Immutable Property<String> author(); }
@Immutable Property<String> model();
@Immutable Property<Identity> identity();
@Immutable Property<String> title();
@Immutable Property<Identity> identity();
@Immutable Association<Manufacturer> manufacturer();
@Immutable public Property<String> name();
@Immutable Property<Unit<?>> unit();
@Immutable ManyAssociation<PersonEntity> friends();
@Immutable Property<String> name(); }
@Immutable ManyAssociation<PersonEntity> colleagues(); }
@Immutable public Property<String> someProperty();
@Immutable ManyAssociation<PersonEntity> children();
/** * ValueComposites are Composites that has state, and equality is defined from its values and not any reference nor * instance references. * * <ul> * <li>No Identity</li> * <li>No Lifecycle</li> * <li>Immutable</li> * <li>equals()/hashCode() operates on the Properties</li> * <li>Can have property and associations methods.</li> * <li>Can not reference Services</li> * <li>Can not have @Uses</li> * </ul> */ @Immutable @Mixins( { AssociationMixin.class, ManyAssociationMixin.class, NamedAssociationMixin.class } ) public interface ValueComposite extends Composite { }
/** * ValueComposites are Composites that has state, and equality is defined from its values and not any reference nor * instance references. * * <ul> * <li>No Identity</li> * <li>No Lifecycle</li> * <li>Immutable</li> * <li>equals()/hashCode() operates on the Properties</li> * <li>Can have property and associations methods.</li> * <li>Can not reference Services</li> * <li>Can not have @Uses</li> * </ul> */ @Immutable @Mixins( { AssociationMixin.class, ManyAssociationMixin.class, NamedAssociationMixin.class } ) public interface ValueComposite extends Composite { }
@Optional @Immutable Association<PersonEntity> father();