From: Vance K. <va...@us...> - 2006-06-26 06:56:51
|
User: vancek Date: 06/06/25 23:56:51 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml profile.xml Log: add support for default list, set and map types for collection association ends added ability to set association end collection index name and type for map index set default collection interface for association ends java.util.SortedSet from java.util.Collection Revision Changes Path 1.25 +45 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -r1.24 -r1.25 --- namespace.xml 14 Jun 2006 08:08:47 -0000 1.24 +++ namespace.xml 26 Jun 2006 06:56:51 -0000 1.25 @@ -957,6 +957,24 @@ Manager. </documentation> </property> + <property name="listTypeImplementation"> + <default>java.util.ArrayList</default> + <documentation> + The implementation type to use for association ends that are modeled as lists. + </documentation> + </property> + <property name="setTypeImplementation"> + <default>java.util.TreeSet</default> + <documentation> + The implementation type to use for association ends that are modeled as sets. + </documentation> + </property> + <property name="mapTypeImplementation"> + <default>java.util.HashMap</default> + <documentation> + The implementation type to use for association ends that are modeled as maps. + </documentation> + </property> <property name="specificCollectionInterfaces"> <default>false</default> <documentation> @@ -968,7 +986,7 @@ </documentation> </property> <property name="defaultCollectionInterface"> - <default>java.util.Collection</default> + <default>java.util.SortedSet</default> <documentation> The default collection interface, this is the interface used with association end accessors and mutators if the @@ -982,6 +1000,32 @@ Used to define the default mapping for EJB3 collections. </documentation> </property> + <property name="associationEndCollectionIndexName" required="false"> + <documentation> + The default association end collection index name + (this can be overridden by the + <a href="profile.html#@andromda_persistence_collection_index">@andromda.persistence.collection.index</a>). + </documentation> + </property> + <property name="associationEndCollectionIndexType" required="false"> + <default>datatype::String</default> + <documentation> + The default association end collection index type + (this can be overridden by the + <a href="profile.html#@andromda_persistence_collection_index_type">@andromda.persistence.collection.index.type</a> + (this is applicable when the collection is a map). + </documentation> + </property> + <property name="ejb3TypeMappingsUri" required="false"> + <default>Hibernate</default> + <documentation> + URI specifying the specific mappings from model types to ejb3/hibernate types. + (i.e. <code>file:${basedir}/HibernateTypeMappings.xml</code>). This + is not necessary but useful for defining hibernate user types (when + hibernate doesn't support a specific type in the manner needed + for your application). + </documentation> + </property> <property name="compositionDefinesEagerLoading"> <default>true</default> <documentation> 1.31 +22 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml Index: profile.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml,v retrieving revision 1.30 retrieving revision 1.31 diff -u -w -r1.30 -r1.31 --- profile.xml 14 Jun 2006 04:55:21 -0000 1.30 +++ profile.xml 26 Jun 2006 06:56:51 -0000 1.31 @@ -915,6 +915,28 @@ <value>list</value> </allowedValues> </element> + <element name="ASSOCIATION_INDEX"> + <documentation> + Column containing the collection index, overrides the + <a href="namespace.html#associationEndCollectionIndexName">associationEndCollectionIndexName</a> + </documentation> + <value>@andromda.persistence.collection.index</value> + <appliedOnElement>Association ends between <![CDATA[<<Entity>>]]> classes</appliedOnElement> + <allowedValues> + <value>A property of this entity</value> + </allowedValues> + </element> + <element name="ASSOCIATION_INDEX_TYPE"> + <documentation> + The type of the column containing the collection index, overrides the + <a href="namespace.html#associationEndCollectionIndexType">associationEndCollectionIndexType</a> + </documentation> + <value>@andromda.persistence.collection.index.type</value> + <appliedOnElement>Association ends between <![CDATA[<<Entity>>]]> classes</appliedOnElement> + <allowedValues> + <value>A property of this entity</value> + </allowedValues> + </element> <element name="LOB_TYPE"> <documentation> Override the entity attribute type where |