class JPADataObjectEditor extends ObjectEditor implements JPADataObjectEditorView.Presenter {

    @Override
    protected void loadDataObject(DataObject dataObject) {
        clear();
        setReadonly(true);
        this.dataObject = dataObject;

        if (dataObject != null) {
            updateEntityField(dataObject.getAnnotation(JPADomainAnnotations.JAVAX_PERSISTENCE_ENTITY_ANNOTATION));
            updateTableNameField(dataObject.getAnnotation(JPADomainAnnotations.JAVAX_PERSISTENCE_TABLE_ANNOTATION));
            updateAuditedField(dataObject.getAnnotation(JPADomainAnnotations.HIBERNATE_ENVERS_AUDITED));
            setReadonly(getContext() == null || getContext().isReadonly());
        }
        loadPropertyEditor();
    }

    @Inject public  JPADataObjectEditor(JPADataObjectEditorView view,
                               DomainHandlerRegistry handlerRegistry,
                               Event<DataModelerEvent> dataModelerEvent,
                               DataModelCommandBuilder commandBuilder);

}