You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(178) |
Feb
(169) |
Mar
(286) |
Apr
(117) |
May
(98) |
Jun
(68) |
Jul
(63) |
Aug
(121) |
Sep
(88) |
Oct
(124) |
Nov
(2) |
Dec
(111) |
2007 |
Jan
(224) |
Feb
(69) |
Mar
(10) |
Apr
(72) |
May
(7) |
Jun
(21) |
Jul
(33) |
Aug
(35) |
Sep
(12) |
Oct
(22) |
Nov
(5) |
Dec
(6) |
2008 |
Jan
(2) |
Feb
(10) |
Mar
(39) |
Apr
(58) |
May
(34) |
Jun
(9) |
Jul
(27) |
Aug
(10) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: <sar...@us...> - 2006-03-16 17:32:29
|
User: sarbogast Date: 06/03/16 09:32:26 Log: Status: Vendor Tag: tcvs-vendor Release Tags: tcvs-release No conflicts created by this import |
From: Vance K. <va...@us...> - 2006-03-16 15:33:17
|
User: vancek Date: 06/03/16 07:33:12 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: added lobType to EJB3EntityAttributeFacade. Revision Changes Path 1.27 +170 -166 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-03-16 15:32:41
|
User: vancek Date: 06/03/16 07:32:37 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3EntityFacadeLogicImpl.java Log: refactored handleGetAttributesAsList to check for overriding LOB type if specified via tagged value @andromda.persistence.lob.type. Revision Changes Path 1.16 +12 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java Index: EJB3EntityFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -w -r1.15 -r1.16 --- EJB3EntityFacadeLogicImpl.java 14 Mar 2006 06:23:03 -0000 1.15 +++ EJB3EntityFacadeLogicImpl.java 16 Mar 2006 15:32:37 -0000 1.16 @@ -914,7 +914,18 @@ separator = ", "; if (includeTypes) { + /** + * If attribute is a LOB and lob type is overriden, then use + * overriding lob type. + */ + if (attr.isLob() && StringUtils.isNotBlank(attr.getLobType())) + { + sb.append(attr.getLobType()); + } + else + { sb.append(attr.getType().getFullyQualifiedName()); + } sb.append(" "); } if (includeNames) |
From: Vance K. <va...@us...> - 2006-03-16 15:31:33
|
User: vancek Date: 06/03/16 07:31:29 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3EntityAttributeFacadeLogicImpl.java Log: refactored handleIsLob implementation to check if attribute type is blob or clob. implemented handleGetLobType to find tagged value from @andromda.persistence.lob.type. Revision Changes Path 1.12 +9 -2 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java Index: EJB3EntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- EJB3EntityAttributeFacadeLogicImpl.java 16 Mar 2006 02:15:02 -0000 1.11 +++ EJB3EntityAttributeFacadeLogicImpl.java 16 Mar 2006 15:31:29 -0000 1.12 @@ -145,7 +145,6 @@ protected boolean handleIsVersion() { boolean isVersion = false; - if (this.hasStereotype(EJB3Profile.STEREOTYPE_VERSION)) { isVersion = true; @@ -158,7 +157,15 @@ */ protected boolean handleIsLob() { - return this.hasStereotype(EJB3Profile.STEREOTYPE_LOB); + return this.getType().isBlobType() || this.getType().isClobType(); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacadeLogic#handleGetLobType() + */ + protected String handleGetLobType() + { + return StringUtils.trimToEmpty((String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_LOB_TYPE)); } /** |
From: Vance K. <va...@us...> - 2006-03-16 15:29:20
|
User: vancek Date: 06/03/16 07:29:20 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3 EJB3Profile.java Log: refactored STEREOTYPE_LOB to TAGGEDVALUE_EJB_PERSISTENCE_LOB_TYPE Revision Changes Path 1.21 +5 -5 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java Index: EJB3Profile.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -w -r1.20 -r1.21 --- EJB3Profile.java 16 Mar 2006 02:14:14 -0000 1.20 +++ EJB3Profile.java 16 Mar 2006 15:29:20 -0000 1.21 @@ -112,11 +112,6 @@ public static final String STEREOTYPE_SERVICE_TIMER_TIMEOUT = profile.get("SERVICE_TIMER_TIMEOUT"); /** - * Represents a LOB type attribute. - */ - public static final String STEREOTYPE_LOB = profile.get("LOB"); - - /** * The stereotype indicating the finder method parameter result type * is assigned to be the first/index. */ @@ -395,6 +390,11 @@ public static final String TAGGEDVALUE_EJB_PERSISTENCE_FLUSH_MODE = profile.get("SERVICE_PERSISTENCE_FLUSH_MODE"); /** + * The tagged value overriding the default LOB type for attribute. + */ + public static final String TAGGEDVALUE_EJB_PERSISTENCE_LOB_TYPE = profile.get("LOB_TYPE"); + + /** * The tagged value representing the session EJB type (Stateless or Stateful) */ public static final String TAGGEDVALUE_EJB_SESSION_TYPE = profile.get("SERVICE_TYPE"); |
From: Vance K. <va...@us...> - 2006-03-16 15:27:42
|
User: vancek Date: 06/03/16 07:27:40 Modified: andromda-ejb3/src/main/resources/META-INF/andromda profile.xml Log: refactored LOB stereotype to LOB_TYPE tagged value element definition Revision Changes Path 1.25 +18 -14 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.24 retrieving revision 1.25 diff -u -w -r1.24 -r1.25 --- profile.xml 16 Mar 2006 02:11:58 -0000 1.24 +++ profile.xml 16 Mar 2006 15:27:40 -0000 1.25 @@ -223,20 +223,6 @@ Service Operation </appliedOnElement> </element> - <element name="LOB"> - <documentation> - Specifies whether the entity attribute is - defined as either a large binary or character - type. - BLOB fields represent Byte[] or Serializable types. - CLOB fiels represent char[], Character[] or String - types. - </documentation> - <value>LOB</value> - <appliedOnElement> - Entity Attribute - </appliedOnElement> - </element> <element name="RESULT_TYPE_FIRST"> <documentation> Specifies the finder method parameter @@ -814,6 +800,24 @@ <value>list</value> </allowedValues> </element> + <element name="LOB_TYPE"> + <documentation> + Override the entity attribute type where + the property is defined as either a large + binary or character type via datatype::Clob or + datatype::Blob respectively. + BLOB fields represent Byte[] or Serializable types. + CLOB fiels represent char[], Character[] or String + types. + Make sure to define the fully qualified type + name for the tagged value. + </documentation> + <value>@andromda.persistence.lob.type</value> + <appliedOnElement> + Entity Attribute of Type datatype::Clob or + datatype::Blob + </appliedOnElement> + </element> <element name="SERVICE_TYPE"> <documentation> Used at the class level of a service bean to |
From: Vance K. <va...@us...> - 2006-03-16 15:26:26
|
User: vancek Date: 06/03/16 07:26:23 Modified: andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: check for lob type when generating attribute types. @Transient annotation and all other annotations are mutually exclusive for attributes and associations. Revision Changes Path 1.22 +92 -57 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl Index: EntityEmbeddable.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl,v retrieving revision 1.21 retrieving revision 1.22 diff -u -w -r1.21 -r1.22 --- EntityEmbeddable.vsl 16 Mar 2006 02:08:34 -0000 1.21 +++ EntityEmbeddable.vsl 16 Mar 2006 15:26:23 -0000 1.22 @@ -102,10 +102,15 @@ // ----------- Attribute Definitions ------------ -#if ($entity.compositePrimaryKeyPresent) +## +## If composite PK attribute declaration +## +#**##if ($entity.compositePrimaryKeyPresent) private ${entity.fullyQualifiedEntityCompositePrimaryKeyName} pk; -#end +#**##end +## ## Only include identifier attributes if a composite primary key is NOT present +## #**##foreach ($attribute in $attributes) #* *##if ($entity.compositePrimaryKeyPresent && $attribute.identifier) #* *##set ($doAttribute = false) @@ -113,9 +118,13 @@ #* *##set ($doAttribute = true) #* *##end #* *##if ($doAttribute) - private ${attribute.type.fullyQualifiedName} $attribute.name; +## +## Check for overriding LOB type +## + private #if ($stringUtils.isNotBlank($attribute.lobType))${attribute.lobType}#else${attribute.type.fullyQualifiedName}#end $attribute.name; #* *##end #**##end + #end #set ($entityRelations = $entity.allEntityRelations) #if (!$entityRelations.empty) @@ -301,7 +310,10 @@ // -------- Attribute Accessors ---------- #**##foreach ($attribute in $attributes) -## Only include accessors for identifier attributes if entity does not have a composite primary key +## +## Only include accessors for identifier attributes if entity does not +## have a composite primary key +## #* *##if ($entity.compositePrimaryKeyPresent && $attribute.identifier) #* *##set ($doAttributeAccessors = false) #* *##else @@ -314,6 +326,12 @@ $attribute.getDocumentation(" * ") * @return $attribute.type.fullyQualifiedName The value of ${attribute.name} */ +## +## If attribute is transient ONLY add Transient annotation +## +#* *##if ($attribute.transient) + @javax.persistence.Transient +#* *##else #* *##if ($attribute.identifier) @javax.persistence.Id #* *##if ($attribute.sequenceGeneratorType) @@ -328,9 +346,6 @@ #* *##if ($attribute.version) @javax.persistence.Version #* *##end -#* *##if ($attribute.transient) - @javax.persistence.Transient -#* *##end #* *##if ($attribute.lob) ## ## Add if LOB type is specified - do not set LOB type as of PFD Spec - inferred from type. @@ -355,7 +370,11 @@ #* *##if ($stringUtils.isNotBlank($attribute.enumerationType)) @javax.persistence.Enumerated(javax.persistence.EnumType.${attribute.enumerationType}) #* *##end - public ${attribute.type.fullyQualifiedName} ${attribute.getterName}() +#* *##end +## +## Override attribute type if attribute is a LOB and lob type is specified +## + public #if ($stringUtils.isNotBlank($attribute.lobType))${attribute.lobType}#else${attribute.type.fullyQualifiedName}#end ${attribute.getterName}() { return $attribute.name; } @@ -368,7 +387,7 @@ * Set the $attribute.name property. * @param value the new value */ - #if (!$attribute.version) public#else protected#end void ${attribute.setterName}(${attribute.type.fullyQualifiedName} value) + #if (!$attribute.version) public#else protected#end void ${attribute.setterName}(#if ($stringUtils.isNotBlank($attribute.lobType))${attribute.lobType}#else${attribute.type.fullyQualifiedName}#end value) { this.${attribute.name} = value; } @@ -394,9 +413,12 @@ * * @return $target.getterSetterTypeName */ +## +## If target association is transient ONLY add Transient annotation +## #* *##if ($target.transient) @javax.persistence.Transient -#* *##end +#* *##else #* *##set ($argExists = false) @javax.persistence.ManyToOne(#if (!$target.optional)optional = false#set ($argExists = true)#end#if ($target.cascadeType)#if ($argExists), #end#**#cascade = {${target.cascadeType}}#set ($argExists = true)#end#if ($target.lazy)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.LAZY#end) ## @@ -415,6 +437,7 @@ #* *##end }) #* *##end +#* *##end public $target.getterSetterTypeName ${target.getterName}() { return this.${target.name}; @@ -445,9 +468,12 @@ * * @return $target.getterSetterTypeName */ +## +## If target association is transient ONLY add Transient annotation +## #* *##if ($target.transient) @javax.persistence.Transient -#* *##end +#* *##else #* *##set ($argExists = false) @javax.persistence.OneToMany(#if ($target.cascadeType)cascade = {${target.cascadeType}}#set ($argExists = true)#end#if ($associationEnd.navigable)#if ($argExists) ,#end#**#mappedBy = "${associationEnd.name}"#set ($argExists = true)#end#if ($target.eager)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.EAGER#end) #* *##if ($target.hasTaggedValue("@andromda.persistence.orderBy")) @@ -460,6 +486,7 @@ #* *##if ($target.associationCacheEnabled) @org.hibernate.annotations.Cache(usage = org.hibernate.annotations.CacheConcurrencyStrategy.${target.cacheType}) #* *##end +#* *##end public $target.getterSetterTypeName ${target.getterName}() { return this.${target.name}; @@ -487,9 +514,12 @@ * * @return $target.getterSetterTypeName */ +## +## If target association is transient ONLY add Transient annotation +## #* *##if ($target.transient) @javax.persistence.Transient -#* *##end +#* *##else #* *##set ($argExists = false) @javax.persistence.OneToOne(#if($associationEnd.owning)#if (!$target.optional)optional = false#set ($argExists = true)#end#end#if ($target.cascadeType)#if ($argExists), #end#**#cascade = {${target.cascadeType}}#set ($argExists = true)#end#if(!$associationEnd.owning)#if ($argExists), #end#**#mappedBy = "${associationEnd.name}"#set ($argExists = true)#end#if ($target.lazy)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.LAZY#end) #* *##if($associationEnd.owning) @@ -510,6 +540,7 @@ }) #* *##end #* *##end +#* *##end public $target.getterSetterTypeName ${target.getterName}() { return this.${target.name}; @@ -538,9 +569,12 @@ * * @return $target.getterSetterTypeName */ +## +## If target association is transient ONLY add Transient annotation +## #* *##if ($target.transient) @javax.persistence.Transient -#* *##end +#* *##else #* *##set ($argExists = false) @javax.persistence.ManyToMany(#if ($target.cascadeType)cascade = {${target.cascadeType}}#set ($argExists = true)#end#if(!$associationEnd.owning)#if ($argExists), #end#**#mappedBy = "${associationEnd.name}"#set ($argExists = true)#end#if ($target.eager)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.EAGER#end) ## Use Aggregation and Composition to determine owning side @@ -567,6 +601,7 @@ #* *##if ($target.associationCacheEnabled) @org.hibernate.annotations.Cache(usage = org.hibernate.annotations.CacheConcurrencyStrategy.${target.cacheType}) #* *##end +#* *##end public $target.getterSetterTypeName ${target.getterName}() { return this.${target.name}; |
From: Vance K. <va...@us...> - 2006-03-16 02:17:22
|
User: vancek Date: 06/03/15 18:17:21 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: removed transient from EJB3EntityAttributeFacade. Revision Changes Path 1.26 +167 -159 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-03-16 02:16:33
|
User: vancek Date: 06/03/15 18:16:32 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3InterceptorFacadeLogicImpl.java Log: refactored isDefaultInterceptor to use tagged value @andromda.service.interceptor.default. Revision Changes Path 1.3 +9 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3InterceptorFacadeLogicImpl.java Index: EJB3InterceptorFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3InterceptorFacadeLogicImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- EJB3InterceptorFacadeLogicImpl.java 9 Mar 2006 04:41:41 -0000 1.2 +++ EJB3InterceptorFacadeLogicImpl.java 16 Mar 2006 02:16:31 -0000 1.3 @@ -13,6 +13,7 @@ import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Predicate; import org.apache.commons.collections.Transformer; +import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.StringUtils; @@ -104,7 +105,14 @@ */ protected boolean handleIsDefaultInterceptor() { - return this.hasStereotype(EJB3Profile.STEREOTYPE_DEFAULT_INTERCEPTOR); + boolean isDefaultInterceptor = false; + String isDefaultInterceptorStr = + String.valueOf(this.findTaggedValue(EJB3Profile.TAGGEDVALUE_DEFAULT_INTERCEPTOR)); + if (StringUtils.isNotBlank(isDefaultInterceptorStr)) + { + isDefaultInterceptor = BooleanUtils.toBoolean(isDefaultInterceptorStr); + } + return isDefaultInterceptor; } } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-03-16 02:15:14
|
User: vancek Date: 06/03/15 18:15:04 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3EntityAttributeFacadeLogicImpl.java Log: removed isTransient implementation. Revision Changes Path 1.11 +0 -14 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java Index: EJB3EntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- EJB3EntityAttributeFacadeLogicImpl.java 9 Feb 2006 07:16:50 -0000 1.10 +++ EJB3EntityAttributeFacadeLogicImpl.java 16 Mar 2006 02:15:02 -0000 1.11 @@ -451,20 +451,6 @@ } /** - * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacadeLogic#handleIsTransient() - */ - protected boolean handleIsTransient() - { - boolean isTransient = false; - - if (this.hasStereotype(EJB3Profile.STEREOTYPE_TRANSIENT)) - { - isTransient = true; - } - return isTransient; - } - - /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacadeLogic#handleGetTemporalType() */ protected String handleGetTemporalType() |
From: Vance K. <va...@us...> - 2006-03-16 02:14:21
|
User: vancek Date: 06/03/15 18:14:19 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3 EJB3Profile.java Log: removed STEREOTYPE_TRANSIENT declaration. refactored STEREOTYPE_DEFAULT_INTERCEPTOR to TAGGEDVALUE_DEFAULT_INTERCEPTOR. Revision Changes Path 1.20 +5 -10 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java Index: EJB3Profile.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -w -r1.19 -r1.20 --- EJB3Profile.java 14 Mar 2006 06:20:41 -0000 1.19 +++ EJB3Profile.java 16 Mar 2006 02:14:14 -0000 1.20 @@ -63,11 +63,6 @@ public static final String STEREOTYPE_VERSION = profile.get("VERSION"); /** - * Represents a transient entity attribute - non persistent. - */ - public static final String STEREOTYPE_TRANSIENT = profile.get("TRANSIENT"); - - /** * Represents a reference to a value object - used in EJB2.x * This may be deprecated in furture releases. */ @@ -99,11 +94,6 @@ public static final String STEREOTYPE_INTERCEPTOR = profile.get("INTERCEPTOR"); /** - * Represents a default interceptor for a session or message-driven bean. - */ - public static final String STEREOTYPE_DEFAULT_INTERCEPTOR = profile.get("DEFAULT_INTERCEPTOR"); - - /** * Represents a dependency from an actor that is identified to * apply a run-as identity to the bean when making calls. */ @@ -493,6 +483,11 @@ profile.get("EXCLUDE_CLASS_INTERCEPTORS"); /** + * Defines a default interceptor for a session or message-driven bean. + */ + public static final String TAGGEDVALUE_DEFAULT_INTERCEPTOR = profile.get("DEFAULT_INTERCEPTOR"); + + /** * Defines the cache type for the Entity. */ public static final String TAGGEDVALUE_HIBERNATE_ENTITY_CACHE = profile.get("ENTITY_CACHE"); |
From: Vance K. <va...@us...> - 2006-03-16 02:12:03
|
User: vancek Date: 06/03/15 18:12:00 Modified: andromda-ejb3/src/main/resources/META-INF/andromda profile.xml Log: removed Transient and DefaultInterceptor stereotype element definitions. Revision Changes Path 1.24 +24 -19 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.23 retrieving revision 1.24 diff -u -w -r1.23 -r1.24 --- profile.xml 14 Mar 2006 06:19:44 -0000 1.23 +++ profile.xml 16 Mar 2006 02:11:58 -0000 1.24 @@ -73,14 +73,6 @@ <value>Version</value> <appliedOnElement>Entity attribute</appliedOnElement> </element> - <element name="TRANSIENT"> - <documentation> - Identifies an entity attribute as a transient - attribute which is non persistent. - </documentation> - <value>Transient</value> - <appliedOnElement>Entity attribute</appliedOnElement> - </element> <element name="PERSISTENCE_CONTEXT"> <documentation> Identifies a persistence context used to express a dependency @@ -168,17 +160,6 @@ class </appliedOnElement> </element> - <element name="DEFAULT_INTERCEPTOR"> - <documentation> - Defines a custome made default interceptor for - all the business methods of all session and message - driven beans within this deployment. - </documentation> - <value>DefaultInterceptor</value> - <appliedOnElement> - class - </appliedOnElement> - </element> <element name="LISTENER"> <documentation> Defines a callback listener class for the entity, @@ -1036,6 +1017,10 @@ <appliedOnElement> Service Operation </appliedOnElement> + <allowedValues> + <value>true</value> + <value>false</value> + </allowedValues> </element> <element name="EXCLUDE_CLASS_INTERCEPTORS"> <documentation> @@ -1047,6 +1032,26 @@ <appliedOnElement> Service Operation </appliedOnElement> + <allowedValues> + <value>true</value> + <value>false</value> + </allowedValues> + </element> + <element name="DEFAULT_INTERCEPTOR"> + <documentation> + Defines the modelled interceptor as a default + interceptor for all business methods of all + session and message driven beans within this + deployment. + </documentation> + <value>@andromda.service.interceptor.default</value> + <appliedOnElement> + Interceptor Class + </appliedOnElement> + <allowedValues> + <value>true</value> + <value>false</value> + </allowedValues> </element> <element name="AUTOMATIC_KEY"> <documentation> |
From: Vance K. <va...@us...> - 2006-03-16 02:11:04
|
User: vancek Date: 06/03/15 18:10:56 Modified: andromda-ejb3/src/main/resources/META-INF/andromda metafacades.xml Log: removed interceptor metafacade definition for default interceptors. Revision Changes Path 1.19 +0 -6 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml Index: metafacades.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -r1.18 -r1.19 --- metafacades.xml 14 Mar 2006 06:17:49 -0000 1.18 +++ metafacades.xml 16 Mar 2006 02:10:52 -0000 1.19 @@ -172,12 +172,6 @@ </mapping> <property reference="interceptorNamePattern"/> </metafacade> - <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3InterceptorFacadeLogicImpl" contextRoot="true"> - <mapping> - <stereotype>DEFAULT_INTERCEPTOR</stereotype> - </mapping> - <property reference="interceptorNamePattern"/> - </metafacade> <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3EnumerationFacadeLogicImpl"> <mapping> <stereotype>ENUMERATION</stereotype> |
From: Vance K. <va...@us...> - 2006-03-16 02:09:36
|
User: vancek Date: 06/03/15 18:09:34 Modified: andromda-ejb3/src/main/resources/templates/ejb3/config ejb-jar.xml.vsl Log: fixed issue with multiple default interceptor definitions Revision Changes Path 1.2 +4 -4 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/config/ejb-jar.xml.vsl Index: ejb-jar.xml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/config/ejb-jar.xml.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- ejb-jar.xml.vsl 14 Mar 2006 06:12:34 -0000 1.1 +++ ejb-jar.xml.vsl 16 Mar 2006 02:09:32 -0000 1.2 @@ -103,14 +103,14 @@ #* *##if (!$defaultInterceptorExists) <interceptor-binding> <ejb-name>*</ejb-name> +#* *##set ($defaultInterceptorExists = true) #* *##end <interceptor-class>${interceptor.fullyQualifiedName}</interceptor-class> -#* *##if (!$defaultInterceptorExists) - </interceptor-binding> -#* *##end -#* *##set ($defaultInterceptorExists = true) #**##end #end +#if ($defaultInterceptorExists) + </interceptor-binding> +#end #foreach ($service in $services) ## ## Service listener - lifecycle callbacks are defined as an interceptor |
From: Vance K. <va...@us...> - 2006-03-16 02:08:38
|
User: vancek Date: 06/03/15 18:08:36 Modified: andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: added @Transient annotation to relationship getters Revision Changes Path 1.21 +12 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl Index: EntityEmbeddable.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl,v retrieving revision 1.20 retrieving revision 1.21 diff -u -w -r1.20 -r1.21 --- EntityEmbeddable.vsl 14 Mar 2006 06:05:02 -0000 1.20 +++ EntityEmbeddable.vsl 16 Mar 2006 02:08:34 -0000 1.21 @@ -394,6 +394,9 @@ * * @return $target.getterSetterTypeName */ +#* *##if ($target.transient) + @javax.persistence.Transient +#* *##end #* *##set ($argExists = false) @javax.persistence.ManyToOne(#if (!$target.optional)optional = false#set ($argExists = true)#end#if ($target.cascadeType)#if ($argExists), #end#**#cascade = {${target.cascadeType}}#set ($argExists = true)#end#if ($target.lazy)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.LAZY#end) ## @@ -442,6 +445,9 @@ * * @return $target.getterSetterTypeName */ +#* *##if ($target.transient) + @javax.persistence.Transient +#* *##end #* *##set ($argExists = false) @javax.persistence.OneToMany(#if ($target.cascadeType)cascade = {${target.cascadeType}}#set ($argExists = true)#end#if ($associationEnd.navigable)#if ($argExists) ,#end#**#mappedBy = "${associationEnd.name}"#set ($argExists = true)#end#if ($target.eager)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.EAGER#end) #* *##if ($target.hasTaggedValue("@andromda.persistence.orderBy")) @@ -481,6 +487,9 @@ * * @return $target.getterSetterTypeName */ +#* *##if ($target.transient) + @javax.persistence.Transient +#* *##end #* *##set ($argExists = false) @javax.persistence.OneToOne(#if($associationEnd.owning)#if (!$target.optional)optional = false#set ($argExists = true)#end#end#if ($target.cascadeType)#if ($argExists), #end#**#cascade = {${target.cascadeType}}#set ($argExists = true)#end#if(!$associationEnd.owning)#if ($argExists), #end#**#mappedBy = "${associationEnd.name}"#set ($argExists = true)#end#if ($target.lazy)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.LAZY#end) #* *##if($associationEnd.owning) @@ -529,6 +538,9 @@ * * @return $target.getterSetterTypeName */ +#* *##if ($target.transient) + @javax.persistence.Transient +#* *##end #* *##set ($argExists = false) @javax.persistence.ManyToMany(#if ($target.cascadeType)cascade = {${target.cascadeType}}#set ($argExists = true)#end#if(!$associationEnd.owning)#if ($argExists), #end#**#mappedBy = "${associationEnd.name}"#set ($argExists = true)#end#if ($target.eager)#if ($argExists), #end#**#fetch = javax.persistence.FetchType.EAGER#end) ## Use Aggregation and Composition to determine owning side |
From: Vance K. <va...@us...> - 2006-03-14 06:26:26
|
User: vancek Date: 06/03/13 22:26:25 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: introduced cache and clustering related attributes. Revision Changes Path 1.25 +159 -162 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-03-14 06:24:53
|
User: vancek Date: 06/03/13 22:24:52 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3SessionFacadeLogicImpl.java Log: implemented isClusteringEnabled. Revision Changes Path 1.15 +13 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java Index: EJB3SessionFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- EJB3SessionFacadeLogicImpl.java 9 Mar 2006 04:45:35 -0000 1.14 +++ EJB3SessionFacadeLogicImpl.java 14 Mar 2006 06:24:52 -0000 1.15 @@ -92,6 +92,11 @@ */ public static final String SERVICE_JNDI_NAME_PREFIX = "jndiNamePrefix"; + /** + * The property that determines application wide clustering + */ + public static final String SERVICE_ENABLE_CLUSTERING = "enableClustering"; + // ---------------- constructor ------------------------------- public EJB3SessionFacadeLogicImpl (Object metaObject, String context) @@ -924,4 +929,12 @@ } return excludeDefault; } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleIsClusteringEnabled() + */ + protected boolean handleIsClusteringEnabled() + { + return BooleanUtils.toBoolean(String.valueOf(this.getConfiguredProperty(SERVICE_ENABLE_CLUSTERING))); + } } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-03-14 06:24:12
|
User: vancek Date: 06/03/13 22:24:10 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3FinderMethodFacadeLogicImpl.java Log: refactored isUseNamedParameter to use BooleanUtils. implemented isUseQueryCache. Revision Changes Path 1.4 +28 -3 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3FinderMethodFacadeLogicImpl.java Index: EJB3FinderMethodFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3FinderMethodFacadeLogicImpl.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- EJB3FinderMethodFacadeLogicImpl.java 26 Jan 2006 04:38:47 -0000 1.3 +++ EJB3FinderMethodFacadeLogicImpl.java 14 Mar 2006 06:24:10 -0000 1.4 @@ -6,6 +6,7 @@ import org.andromda.cartridges.ejb3.EJB3Globals; import org.andromda.cartridges.ejb3.EJB3Profile; import org.andromda.metafacades.uml.ParameterFacade; +import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.StringUtils; @@ -24,7 +25,12 @@ /** * Stores whether or not named parameters should be used in EJB queries. */ - public static final String QUERY_USE_NAMED_PARAMETERS = "queryUseNamedParameters"; + private static final String QUERY_USE_NAMED_PARAMETERS = "queryUseNamedParameters"; + + /** + * Stores whether query cache is enabled application wide + */ + private static final String USE_QUERY_CACHE = "hibernateEnableQueryCache"; // ---------------- constructor ------------------------------- @@ -110,8 +116,27 @@ */ protected boolean handleIsUseNamedParameters() { - return Boolean.valueOf(String.valueOf( - this.getConfiguredProperty(QUERY_USE_NAMED_PARAMETERS))).booleanValue(); + return BooleanUtils.toBoolean(String.valueOf( + this.getConfiguredProperty(QUERY_USE_NAMED_PARAMETERS))); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3FinderMethodFacadeLogic#handleIsUseQueryCache() + */ + protected boolean handleIsUseQueryCache() + { + boolean queryCacheEnabled = false; + String queryCacheEnabledStr = (String)findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_USE_QUERY_CACHE); + if (StringUtils.isBlank(queryCacheEnabledStr)) + { + queryCacheEnabled = BooleanUtils.toBoolean( + String.valueOf(this.getConfiguredProperty(USE_QUERY_CACHE))); + } + else + { + queryCacheEnabled = BooleanUtils.toBoolean(queryCacheEnabledStr); + } + return queryCacheEnabled; } } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-03-14 06:23:04
|
User: vancek Date: 06/03/13 22:23:03 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3EntityFacadeLogicImpl.java Log: implemented getCacheType and isCacheEnabled Revision Changes Path 1.15 +32 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java Index: EJB3EntityFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- EJB3EntityFacadeLogicImpl.java 20 Feb 2006 05:20:22 -0000 1.14 +++ EJB3EntityFacadeLogicImpl.java 14 Mar 2006 06:23:03 -0000 1.15 @@ -147,10 +147,20 @@ private static final String ENTITY_COMPOSITE_PRIMARY_KEY_NAME_PATTERN = "entityCompositePrimaryKeyNamePattern"; /** - * The poroperty that stores the generic finders option + * The property that stores the generic finders option */ private static final String ENTITY_GENERIC_FINDERS = "entityGenericFinders"; + /** + * The property that stores whether caching is enabled. + */ + private static final String HIBERNATE_ENABLE_CACHE = "hibernateEnableCache"; + + /** + * The property that stores the hibernate entity cache value. + */ + private static final String HIBERNATE_ENTITY_CACHE = "hibernateEntityCache"; + // ---------------- constructor ------------------------------- public EJB3EntityFacadeLogicImpl (Object metaObject, String context) @@ -1041,4 +1051,25 @@ { return (EJB3EntityAttributeFacade)this.getIdentifiers().iterator().next(); } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogic#handleGetCacheType() + */ + protected String handleGetCacheType() + { + String cacheType = (String)findTaggedValue(EJB3Profile.TAGGEDVALUE_HIBERNATE_ENTITY_CACHE); + if (StringUtils.isBlank(cacheType)) + { + cacheType = String.valueOf(this.getConfiguredProperty(HIBERNATE_ENTITY_CACHE)); + } + return StringUtils.trimToEmpty(cacheType); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogic#handleIsCacheEnabled() + */ + protected boolean handleIsCacheEnabled() + { + return BooleanUtils.toBoolean(String.valueOf(this.getConfiguredProperty(HIBERNATE_ENABLE_CACHE))); + } } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-03-14 06:22:24
|
User: vancek Date: 06/03/13 22:22:23 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3AssociationEndFacadeLogicImpl.java Log: implemented getCacheType and isAssociationCacheEnabled Revision Changes Path 1.8 +32 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java Index: EJB3AssociationEndFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- EJB3AssociationEndFacadeLogicImpl.java 20 Feb 2006 05:19:01 -0000 1.7 +++ EJB3AssociationEndFacadeLogicImpl.java 14 Mar 2006 06:22:21 -0000 1.8 @@ -14,6 +14,7 @@ import org.andromda.metafacades.uml.UMLMetafacadeProperties; import org.andromda.metafacades.uml.UMLMetafacadeUtils; import org.andromda.metafacades.uml.UMLProfile; +import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; @@ -147,6 +148,16 @@ */ private static final String COMPOSITION_DEFINES_EAGER_LOADING = "compositionDefinesEagerLoading"; + /** + * The property that stores whether relationship collection caching is enabled. + */ + private static final String HIBERNATE_ASSOCIATION_ENABLE_CACHE = "hibernateEnableAssociationsCache"; + + /** + * Stores the default cache strategy for relationship Collections. + */ + private static final String HIBERNATE_ASSOCIATION_CACHE = "hibernateAssociationCache"; + // ---------------- constructor ------------------------------- public EJB3AssociationEndFacadeLogicImpl (Object metaObject, String context) @@ -618,4 +629,25 @@ { return "set" + StringUtils.capitalize(this.getLabelName()); } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3AssociationEndFacadeLogic#handleGetCacheType() + */ + protected String handleGetCacheType() + { + String cacheType = (String)findTaggedValue(EJB3Profile.TAGGEDVALUE_HIBERNATE_ASSOCIATION_CACHE); + if (StringUtils.isBlank(cacheType)) + { + cacheType = String.valueOf(this.getConfiguredProperty(HIBERNATE_ASSOCIATION_CACHE)); + } + return StringUtils.trimToEmpty(cacheType); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3AssociationEndFacadeLogic#handleIsAssociationCacheEnabled() + */ + protected boolean handleIsAssociationCacheEnabled() + { + return BooleanUtils.toBoolean(String.valueOf(this.getConfiguredProperty(HIBERNATE_ASSOCIATION_ENABLE_CACHE))); + } } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-03-14 06:21:14
|
User: vancek Date: 06/03/13 22:21:13 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3 EJB3ScriptHelper.java Log: removed new line Revision Changes Path 1.7 +0 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3ScriptHelper.java Index: EJB3ScriptHelper.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3ScriptHelper.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- EJB3ScriptHelper.java 6 Feb 2006 03:36:21 -0000 1.6 +++ EJB3ScriptHelper.java 14 Mar 2006 06:21:13 -0000 1.7 @@ -100,7 +100,6 @@ result = StringUtils.replaceChars(name, '.', '_'); } return result; - } /** |
From: Vance K. <va...@us...> - 2006-03-14 06:20:42
|
User: vancek Date: 06/03/13 22:20:41 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3 EJB3Profile.java Log: declared cache related tagged value constants Revision Changes Path 1.19 +15 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java Index: EJB3Profile.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3Profile.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -r1.18 -r1.19 --- EJB3Profile.java 9 Mar 2006 04:38:11 -0000 1.18 +++ EJB3Profile.java 14 Mar 2006 06:20:41 -0000 1.19 @@ -492,4 +492,19 @@ public static final String TAGGEDVALUE_SERVICE_INTERCEPTOR_EXCLUDE_CLASS = profile.get("EXCLUDE_CLASS_INTERCEPTORS"); + /** + * Defines the cache type for the Entity. + */ + public static final String TAGGEDVALUE_HIBERNATE_ENTITY_CACHE = profile.get("ENTITY_CACHE"); + + /** + * Defines the cache type for a relationship collection. + */ + public static final String TAGGEDVALUE_HIBERNATE_ASSOCIATION_CACHE = profile.get("ASSOCIATION_CACHE"); + + /** + * Defines whether query cache is enable for query. + */ + public static final String TAGGEDVALUE_EJB_USE_QUERY_CACHE = profile.get("USE_QUERY_CACHE"); + } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-03-14 06:19:45
|
User: vancek Date: 06/03/13 22:19:44 Modified: andromda-ejb3/src/main/resources/META-INF/andromda profile.xml Log: added cache related tagged value elements Revision Changes Path 1.23 +43 -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.22 retrieving revision 1.23 diff -u -w -r1.22 -r1.23 --- profile.xml 9 Mar 2006 04:37:27 -0000 1.22 +++ profile.xml 14 Mar 2006 06:19:44 -0000 1.23 @@ -1190,6 +1190,7 @@ By default, topics are non-durable. </documentation> <value>@andromda.ejb.mdb.subscription.durability</value> + <appliedOnElement>Message Driven Bean</appliedOnElement> </element> <element name="CONTAINER_CONFIGURATION"> <documentation> @@ -1198,6 +1199,48 @@ session bean or MDB. </documentation> <value>@andromda.ejb.container.configuration</value> + <appliedOnElement>Message Driven or Session Bean</appliedOnElement> + </element> + <element name="ENTITY_CACHE"> + <documentation> + Defines the cache strategy the entity. + </documentation> + <value>@andromda.persistence.entity.cache</value> + <appliedOnElement>Entities</appliedOnElement> + <allowedValues> + <value>NONE</value> + <value>NONSTRICT_READ_WRITE</value> + <value>READ_ONLY</value> + <value>READ_WRITE</value> + <value>TRANSACTIONAL</value> + </allowedValues> + </element> + <element name="ASSOCIATION_CACHE"> + <documentation> + Defines the cache strategy for relationship + association collection. + </documentation> + <value>@andromda.persistence.association.cache</value> + <appliedOnElement>Association End Between Entities</appliedOnElement> + <allowedValues> + <value>NONE</value> + <value>NONSTRICT_READ_WRITE</value> + <value>READ_ONLY</value> + <value>READ_WRITE</value> + <value>TRANSACTIONAL</value> + </allowedValues> + </element> + <element name="USE_QUERY_CACHE"> + <documentation> + Used to override the default option that + enables/disable query cache. + </documentation> + <value>@andromda.ejb.query.useCache</value> + <appliedOnElement>Query Operations</appliedOnElement> + <allowedValues> + <value>true</value> + <value>false</value> + </allowedValues> </element> </elementGroup> </elements> |
From: Vance K. <va...@us...> - 2006-03-14 06:18:53
|
User: vancek Date: 06/03/13 22:18:52 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml Log: added hibernate cache related properties added clustering property added application-metainf outlet property Revision Changes Path 1.18 +85 -0 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.17 retrieving revision 1.18 diff -u -w -r1.17 -r1.18 --- namespace.xml 28 Feb 2006 02:17:20 -0000 1.17 +++ namespace.xml 14 Mar 2006 06:18:51 -0000 1.18 @@ -66,6 +66,13 @@ login-config.xml descriptor. </documentation> </property> + <property name="application-metainf"> + <documentation> + The location where the application specific XML + descriptors that are packaged in the ear file are + generated. + </documentation> + </property> <property name="message-driven-beans"> <documentation> The directory to which Message Driven Bean files @@ -196,6 +203,84 @@ </ul> </documentation> </property> + <property name="hibernateEnableCache"> + <default>false</default> + <documentation> + Enable/disable hibernate's second level cache + features for the cartridge. This implies the + JBoss Cache framework for the EJB3 cartridge. + By enabling this, you are enabling entity + caching. + </documentation> + </property> + <property name="hibernateEnableAssociationsCache"> + <default>false</default> + <documentation> + Enable/disable Hibernate's second level cache + feature for entity associations. + Please <strong>NOTE</strong> that hibernateEnableCache + should also be enabled when specifying this property. + </documentation> + </property> + <property name="hibernateEnableQueryCache"> + <default>false</default> + <documentation> + Enable/disable Hibernate's query cache + feature for queries. + Please <strong>NOTE</strong> that hibernateEnableCache + should also be enabled when specifying this property. + </documentation> + </property> + <property name="hibernateEntityCache"> + <default>READ_WRITE</default> + <documentation> + Defines the default strategy for Entities caching. + Can be overwritten using the corresponding + tagged value <code>@andromda.persistence.entity.cache</code>. + Possible values are: + <ul> + <li>READ_WRITE</li> + <li>NONSTRICT_READ_WRITE</li> + <li>READ_ONLY</li> + <li>TRANSACTIONAL</li> + <li>NONE</li> + </ul> + </documentation> + </property> + <property name="hibernateAssociationCache"> + <default>READ_WRITE</default> + <documentation> + Defines the default strategy for associations between + Entities caching. Can be overwrited with the corresponding + tagged value <code>@andromda.persistence.association.cache</code>. + Possible values are: + <ul> + <li>READ_WRITE</li> + <li>NONSTRICT_READ_WRITE</li> + <li>READ_ONLY</li> + <li>TRANSACTIONAL</li> + <li>NONE</li> + </ul> + </documentation> + </property> + </propertyGroup> + <propertyGroup name="Clustering"> + <property name="enableClustering"> + <default>false</default> + <documentation> + Enable/disable EJB 3.0 clustering by + the application server. Applies to + stateless and stateful session bean + clustering. You can override the + default setting via the + <code>@andromda.service.clustered</code> + tagged value. Possible values are: + <ul> + <li>true</li> + <li>false</li> + </ul> + </documentation> + </property> </propertyGroup> <propertyGroup name="Transactions"> <property name="hibernateTransactionManagerLookupClass" required="false"> |
From: Vance K. <va...@us...> - 2006-03-14 06:17:51
|
User: vancek Date: 06/03/13 22:17:49 Modified: andromda-ejb3/src/main/resources/META-INF/andromda metafacades.xml Log: added hibernate cache related properties and clustering property Revision Changes Path 1.18 +6 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml Index: metafacades.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -u -w -r1.17 -r1.18 --- metafacades.xml 9 Mar 2006 04:35:47 -0000 1.17 +++ metafacades.xml 14 Mar 2006 06:17:49 -0000 1.18 @@ -10,6 +10,10 @@ <property reference="labelCollectionNamePattern"/> <property reference="labelSingleNamePattern"/> <property reference="entityDefaultCascade"/> + <property reference="hibernateEnableCache"/> + <property reference="hibernateEntityCache"/> + <property reference="hibernateEnableQueryCache"/> + <property reference="enableClustering"/> <property reference="entityInheritanceStrategy"/> <property reference="entityDiscriminatorType"/> <property reference="entityDiscriminatorColumnName"/> @@ -96,6 +100,8 @@ <property reference="associationCollectionType"/> <property reference="specificCollectionInterfaces"/> <property reference="defaultCollectionInterface"/> + <property reference="hibernateEnableAssociationsCache"/> + <property reference="hibernateAssociationCache"/> </metafacade> <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3AssociationFacadeLogicImpl"> <mapping> |