public ManyToOneFieldImpl(CharSequence name, EntityImpl entity, AggregationRelation oneToOne) throws ModelException { super(name, entity, oneToOne); this.manyToOne = oneToOne; // Add to parent entity entity.addField(this); }