package pt.ist.fenixframework.example.externalization.domain; /* * ValueTypes declarations * */ enum pt.ist.fenixframework.example.externalization.domain.EnumType as EnumType; valueType java.math.BigDecimal as BigDecimalAuto { externalizeWith { String toString(); } } valueType java.math.BigDecimal as BigDecimalManual { externalizeWith { String pt.ist.fenixframework.example.externalization.BigDecimalExternalization.bigDecimalAsString(); } internalizeWith pt.ist.fenixframework.example.externalization.BigDecimalExternalization.bigDecimalFromString(); } valueType pt.ist.fenixframework.example.externalization.domain.CompositeValueType as CompositeValueType { externalizeWith { BigDecimalAuto getValue(); // String getUnit(); } internalizeWith fromComponents(); } // Root class Root {} // DataStore class DataStore { TxNumber txNumber; boolean aboolean; byte abyte; char achar; short ashort; int anint; float afloat; long along; double adouble; Boolean aBoolean; Byte aByte; Character aCharacter; Short aShort; Integer anInteger; Float aFloat; Long aLong; Double aDouble; String aString; EnumType anEnumType; bytearray aByteArray; //JodaTimes DateTime aDateTime; LocalDate aLocalDate; LocalTime aLocalTime; Partial aPartialEmpty; Partial aPartialLocalTime; Partial aPartialDayOfMonth; BigDecimalAuto aBigDecimalAuto; BigDecimalManual aBigDecimalManual; CompositeValueType aCompositeValueType; } relation RootDataStore { Root playsRole root; DataStore playsRole dataStore; }