Dataïand MDA User Guide
-
System requirements
-
Ant Code Generation Task
-
General Naming Conventions and Processing
-
Data Type Primitives
MetaType (UMLType) Description JavaType HibernateType XSDType FormatterJavaType Status Numeric floatfloatcorresponds to the IEEE single-precision 32-bit floating point type.java.lang.Floatfloatfloatorg.dataisland.primitives.format.DefaultDataIslandFormatStatus longlongis ·derived· from integer by setting the value of ·maxInclusive· to be 9223372036854775807 and ·minInclusive· to be -9223372036854775808.java.lang.Longlonglongorg.dataisland.primitives.format.DefaultDataIslandFormatStatus integerDescription java.lang.Integerlongintegerorg.dataisland.primitives.format.DefaultDataIslandFormatStatus doubleThe doubledatatype corresponds to IEEE double-precision 64-bit floating point type.java.lang.Doubledoubledoubleorg.dataisland.primitives.format.DefaultDataIslandFormatStatus shortshortis ·derived· from int by setting the value of ·maxInclusive· to be 32767 and ·minInclusive· to be -32768.java.lang.Shortshortshortorg.dataisland.primitives.format.DefaultDataIslandFormatStatus bigdecimalDescription java.math.BigDecimalbig_decimalstringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus bigintegerDescription java.math.BigIntegercustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus Financial moneyDescription org.dataisland.cms.primitivetype.Moneycustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus currencyDescription java.util.Currencycurrencystringorg.dataisland.primitives.format.CurrencyDataIslandFormatStatus Text characterDescription java.lang.Charactercharacterstringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus stringThe stringdatatype represents character strings in XML.java.lang.Stringstringstringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus textDescription java.lang.Stringtextstringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus hypertextDescription java.lang.Stringcustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus Binary booleanbooleanhas the ·value space· required to support the mathematical concept of binary-valued logic: {true, false}.java.lang.Booleanbooleanbooleanorg.dataisland.primitives.format.DefaultDataIslandFormatStatus bytebyte is ·derived· from short by setting the value of ·maxInclusive· to be 127 and ·minInclusive· to be -128. java.lang.Bytebytebyteorg.dataisland.primitives.format.DefaultDataIslandFormatStatus blobDescription org.dataisland.cms.primitivetype.Blobcustom base67binaryorg.dataisland.primitives.format.DefaultDataIslandFormatStatus Date and time datedaterepresents a calendar date.SimpleDateFormatpattern : "d MMMM yyyy".java.util.Datedatedateorg.dataisland.primitives.format.DateDataIslandFormatStatus timestamptimestamprepresents a specific instant of time.SimpleDateFormatpattern : "d MMMM yyyy HH:mm:ss.S".java.util.Datetimestampstringorg.dataisland.primitives.format.TimestampDataIslandFormatStatus datetimeSimpleDateFormatpattern : "d MMMM yyyy HH:mm".java.util.DatedatetimedateTimeorg.dataisland.primitives.format.DateTimeDataIslandFormatStatus timetimerepresents an instant of time that recurs every day.SimpleDateFormatpattern : "h:mm a".java.util.Datetimetimeorg.dataisland.primitives.format.TimeDataIslandFormatStatus timezoneDescription java.util.TimeZonetimezonestringorg.dataisland.primitives.format.TimeZoneDataIslandFormatStatus durationdurationrepresents a duration of time.SimpleDateFormatpattern : "h:mm:ss".java.util.Datetimestampdurationorg.dataisland.primitives.format.DurationDataIslandFormatStatus monthmonthrepresents a specific gregorian month in a specific gregorian year.SimpleDateFormatpattern : "MMMMM yyyy".java.util.DatedategYearMonthorg.dataisland.primitives.format.MonthDataIslandFormatStatus monthofyearmonthofyearis a gregorian month that recurs every year.SimpleDateFormatpattern : "MMMMM".java.util.DatedategMonthorg.dataisland.primitives.format.MonthOfYearataIslandFormatStatus yearyearrepresents a gregorian calendar year.SimpleDateFormatpattern : "yyyy".java.util.DatedategYearorg.dataisland.primitives.format.YearDataIslandFormatStatus dayofmonthdayofmonthis a gregorian date that recurs, specifically a day of the year such as the third of May.SimpleDateFormatpattern : "MMMMM d".java.util.DatedategMonthDayorg.dataisland.primitives.format.DayOfMonthDataIslandFormatStatus dayofweekSimpleDateFormatpattern : "EEEE".java.util.Datedatestringorg.dataisland.primitives.format.DayOfWeekDataIslandFormatStatus Internationalization localeDescription java.util.Localelocalelanguageorg.dataisland.primitives.format.LocaleDataIslandFormatStatus Geometric pointDescription org.dataisland.cms.primitivetype.Pointcustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus lineDescription org.dataisland.cms.primitivetype.Linecustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus segmentDescription org.dataisland.cms.primitivetype.Segmentcustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus boxDescription org.dataisland.cms.primitivetype.Boxcustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus pathDescription org.dataisland.cms.primitivetype.Pathcustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus circleDescription org.dataisland.cms.primitivetype.Circlecustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus Network internetaddressDescription org.dataisland.cms.primitivetype.InternetAddresscustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus macaddressDescription org.dataisland.cms.primitivetype.MACAddresscustom stringorg.dataisland.primitives.format.DefaultDataIslandFormatStatus uriDescription org.dataisland.cms.primitivetype.URIcustom anyURIorg.dataisland.primitives.format.DefaultDataIslandFormatStatus Arrays and collections []Description java.util.ArrayListN/A N/A N/A Status Meta voidDescription N/A N/A N/A N/A Status -
Expression SQLization
-
Foreing key suffix
-
Localization table name suffix
-
-
UML Conventions
-
Model-specific UML Conventions
-
Stereotypes
Name Expression Semantics Application Model ApplicationModelCharacterizes a model element containing a web application ontology class diagram.
-
-
Package-specific UML Conventions
-
Classifier-specific UML Conventions
-
Stereotypes
Name Expression Semantics Entity EntityCharacterizes a classifier element that represents a persisted entity (bean) within the ontology. Localizable Entity LocalizableCharacterizes a classifier for which locale-specific values for attributes or associations are possible. -
Tagged Values
Name Expression Semantics Allowed value(s) Default value Mandatory? ID Generator Class IDGeneratorClassSpecifies the Hibernate id generator class for this classifier persisted entity bean primary key. Please read the Hibernate documentation for details on the restrictions for every generator class. increment,identity,sequence,hilo,seqhilo,uuid.hex,uuid.string,native,assigned,foreignuuid.hexNo, only use to override default value. ID Java Type IDJavaTypeSpecifies the Java type for this classifier persisted entity bean primary key. Restricted to serializable classes with contructor with string parameter or Apache Commons ConverUtils support. java.util.StringNo, only use to override default value. ID Attribute Name IDNameSpecifies the class attribute for this classifier persisted entity bean primary key. Any accepted variable name. idNo, only use to override default value. ID SQL Length IDSQLLengthSpecifies the persistance (usually SQL) storage unit lenght limit. Any positive integer value ( 0is for unlimited lenght).0(or type-specific limit).No, only use to override default value. ID SQL Name IDSQLNameSpecifies the persistance (usually SQL) storage column name. Any storage provider allowed column name (usually ANSI SQL-92). SQLization of the ID attribute name. No, only use to override default value. ID SQL Type IDSQLTypeSpecifies the persistance (usually SQL) storage column data type. Any storage provider allowed data type (usually ANSI SQL-92). Default O/R storage provider vocabulary type from O/R provider (usually Hibernate). No, only use to override default value. Localization Foreign Key SQL Column Name LocalizationFKSQLNameSpecifies the name of the persistent relational storage column in the localization table for this classifier persisted entity bean foreign key, if it is localizable. Any storage provider allowed column name (usually ANSI SQL-92). SQLization of the classifier name + foreign key suffix. No, only use to override default value. Localization Locale SQL Column Name LocalizationLocaleSQLNameSpecifies the name of the persistent relational storage column in the localization table for the localization entry locale, if this classifier is localizable. Any storage provider allowed column name (usually ANSI SQL-92). LOCALENo, only use to override default value. Localization SQL Name LocalizationSQLNameSpecifies the name of the persistent relational localization table, if this classifier is localizable. Any storage provider allowed table name (usually ANSI SQL-92). SQLization of the classifier name + localization table name suffix. No, only use to override default value. SQL Name SQLNameSpecifies the name of the persistent relational localization table for this classifier. Any storage provider allowed table name (usually ANSI SQL-92). SQLization of the classifier name. No, only use to override default value.
-
-
Attribute-specific UML Conventions
-
Stereotypes
Name Expression Semantics Blob BlobCharacterizes an attribute that will be stored as a blob in the persistance provider. Date DateCharacterizes a date attribute truncated to the day of month (containing year, month of year, day of month). Localizable LocalizableCharacterizes a string attribute for which localized values must be supported. Text TextCharacterizes a string attribute stored as a text in the persistance provider. Time TimeCharacterizes a date attribute truncated from the hour of day to the millisecond of the second (containing hour of day, minute of the hour, second of the minute, millisecond of the second). Timestamp TimestampCharacterizes an untruncated date attribute. This is the default behavior. Transparently Localizable TransparentlyLocalizableCharacterizes a localizable attribute that for which values in the default locale are copied for every other locale in the system. Unique UniqueCharacterizes an attribute that must be unique for all the persisted instances of this attribute's parent classifier. -
Tagged Values
Name Expression Semantics Allowed value(s) Default value Mandatory? SQL Length SQLLengthSpecifies the persistance (usually SQL) storage unit lenght limit for this attribute. Any positive integer value ( 0is for unlimited lenght).0(or type-specific limit).No, only use to override default value. SQL Name SQLNameSpecifies the persistance (usually SQL) storage column name for this attribute. Any storage provider allowed column name (usually ANSI SQL-92). SQLization of this attribute name. No, only use to override default value. SQL Type SQLTypeSpecifies the persistance (usually SQL) storage column data type for this attribute. Any storage provider allowed data type (usually ANSI SQL-92). Default O/R storage provider vocabulary type from O/R provider (usually Hibernate). No, only use to override default value. String Descriptor Index StringDescriptorIndexThe order of appearance of this attribute in the string representation of the parent classifier. Any native value indicates that the attribute does not appear in the string representation. Any integer value. The index of the order in which the attribute appears in the UML model. No, only use to override default value.
-
-
Association-specific UML Conventions
-
Tagged Values
Name Expression Semantics Allowed value(s) Default value Mandatory? SQL Name SQLNameFor Many-to-many associations, specifies the persistance (usually SQL) storage table name for this association. Any storage provider allowed column name (usually ANSI SQL-92). SQLization of this association name. No, only use to override default value.
-
-
Association end specific UML Conventions
-
Tagged Values
Name Expression Semantics Allowed value(s) Default value Mandatory? SQL Name SQLNameFor one-to-many (specified on the current classifier end), many-to-one (specified on the other end), and one-to-one association ends (specified on the current classifier end), specifies the persistance (usually SQL) storage foreing key column name. Any storage provider allowed column name (usually ANSI SQL-92). SQLization of the other association end type name + foreign key suffix. No, only use to override default value.
-
-
-
Outlets
Name Expression Output path pattern
{0} Package fully qualified name.
{1} Classifier name.
{2} Attribute name (uppercase first letter).Features Triggering Stereotype Hibernate Configuration File hibernate-confconf/hibernate/hibernate.cfg.xml Lists all the persisted entities. ApplicationModel (Model) Entity Bean Java File entityjava/{0}/entities/{1}.java Hibernate entity XDoclet annotated POJO. Supports localization if needed. Entity (Classifier) Entity Bean Localization Class Java File entity-localizationjava/{0}/entities/{1}Localization.java Hibernate XDoclet annotated POJO of the localized attributes for this class. Entity (Classifier with localizable attributes or localizable associations) Persistence Facade Java File facadejava/{0}/facades/{1}PersistenceFacade.java Provides persistence methods (save, update, delete, list, etc.). Entity (Classifier) Persistence Facade Base Java File facade-basejava/{0}/facades/{1}PersistenceFacadeBase.java Provides an extension mechanism for custom persistence logic. Entity (Classifier) Entity Not Found Exception Java File exception-notfoundjava/{0}/facades/{1}NotFoundException.java Entity-specific exception class thrown when a persisted instance cannot be found in the storage. Entity (Classifier) Unique Attribute Unicity Violation Exception Java File exception-unicityviolationjava/{0}/facades/{1}{2}UnicityViolationException.java Attribute-specific exception class thrown when an attempt to save an instance fails because another persisted instance has a value that would violate the unicity constraint on the given attribute. Unique (Attribute) Entity Deletion Struts Tile JSP File struts-tiles-deletestruts/tiles/{0}/{1}/delete.jsp Struts JSP form for the deletion of an instance. Entity (Classifier) Entity Form Struts Tile JSP File struts-tiles-formstruts/tiles/{0}/{1}/form.jsp Struts JSP form for the editing of an instance. Entity (Classifier) Entity List Struts Tile JSP File struts-tiles-liststruts/tiles/{0}/{1}/list.jsp Struts JSP page listing of all instances for the given class. Entity (Classifier) Abstract Struts Action Java File struts-action-abstract{0}/struts/{1}AbstractAction.java Abstract Struts action containing all general operations on instances from HttpServlet operations. Entity (Classifier) Delete Struts Action Java File struts-action-delete{0}/struts/{1}DeleteAction.java Struts action class for controlling the deletion operation. Entity (Classifier) Form Display Struts Action Java File struts-action-form{0}/struts/{1}FormAction.java Struts action class for controlling the form population from persisted data. Entity (Classifier) List Display Struts Action Java File struts-action-list{0}/struts/{1}ListAction.java Struts action class for controlling the persisted instance listing operation. Entity (Classifier) Entity Save Struts Action Java File struts-action-save{0}/struts/{1}SaveAction.java Struts action class for controlling the instance saving/updating operation. Entity (Classifier) -
Limitations

This software is licensed under the CC-GNU LGPL.
