Skip to content

Roma 3 migration guide

luigidellaquila edited this page Sep 26, 2011 · 3 revisions

Roma 3 migration guide

Roma set/get features

Roma.getClassFeature(...) , Roma.getFieldFeature(...) and Roma.getActionFeature(...) API is now unified as follows: Roma.getFeature(parentObject, fieldOrActionName, feature)

Roma.setClassFeature(...) , Roma.setFieldFeature(...) and Roma.setActionFeature(...) API is now unified as follows: Roma.getFeature(parentObject, fieldOrActionName, feature, value)

composed entities and expand

composed entities are now natively supported by core aspect through @CoreField(expand) feature; now Roma sees entity fields as fields of the ComposedEntity, so you should

  • remove all @ViewField(layout="expand") and <field... around and replace them with @CoreField(expand=AnnotationConstants.TRUE and <field...

  • remove all explicitElements="true" from <field name="entity" ecc. on ComposedEntity classes and move all entity field declarations to parent (if you want to declare explicitElements="true" you have to do it on the parent class)

  • replace all Roma.fieldChanged(getEntity(), "field") with Roma.fieldChanged(this, "field")

  • change all ValidationException(getEntity(), ...) in ComposedEntity classes to ValidationException(this, ...)

TODO

Clone this wiki locally