User: ecrutchfield Date: 06/04/09 07:32:41 Modified: andromda-nhibernate/src/main/resources/templates/nhibernate NHibernateEntityImplManual.vsl NHibernateEmbeddedValueImpl.vsl NHibernateEntity.vsl NHibernateEntityImpl.vsl Log: updated to use .Net comment style and new $toDoTag property Revision Changes Path 1.2 +1 -1 cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEntityImplManual.vsl Index: NHibernateEntityImplManual.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEntityImplManual.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NHibernateEntityImplManual.vsl 8 Mar 2006 04:15:24 -0000 1.1 +++ NHibernateEntityImplManual.vsl 9 Apr 2006 14:32:40 -0000 1.2 @@ -27,7 +27,7 @@ #if (!$abstract) { - //TODO: implement $operation.visibility $operation.returnType.fullyQualifiedName $operation.signature + //${toDoTag} implement $operation.visibility $operation.returnType.fullyQualifiedName $operation.signature #if ($operation.returnTypePresent) return $operation.returnType.javaNullString; #else 1.2 +3 -3 cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEmbeddedValueImpl.vsl Index: NHibernateEmbeddedValueImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEmbeddedValueImpl.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NHibernateEmbeddedValueImpl.vsl 8 Mar 2006 04:15:24 -0000 1.1 +++ NHibernateEmbeddedValueImpl.vsl 9 Apr 2006 14:32:40 -0000 1.2 @@ -12,18 +12,18 @@ { #end /// <summary> - /// @see $embeddedValue.fullyQualifiedName + /// <see cref="$embeddedValue.fullyQualifiedName"/> /// </summary> public#if ($embeddedValue.abstract) abstract#end class $embeddedValue.implementationName : $embeddedValue.fullyQualifiedName { #foreach ($operation in $embeddedValue.operations) /// <summary> - /// @see ${embeddedValue.fullyQualifiedName}#${operation.getSignature(false)} + /// <see cref="${embeddedValue.fullyQualifiedName}.${operation.getSignature(false)}"/> /// </summary> $operation.visibility override $operation.returnType.fullyQualifiedName $operation.signature { - //TODO: implement $operation.visibility $operation.returnType.fullyQualifiedName $operation.signature + //${toDoTag} implement $operation.visibility $operation.returnType.fullyQualifiedName $operation.signature #if ($operation.returnTypePresent) return $operation.returnType.javaNullString; #else 1.2 +22 -14 cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEntity.vsl Index: NHibernateEntity.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEntity.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NHibernateEntity.vsl 8 Mar 2006 04:15:24 -0000 1.1 +++ NHibernateEntity.vsl 9 Apr 2006 14:32:40 -0000 1.2 @@ -39,7 +39,7 @@ } #end - // ----- Attributes and Associations ----- + #region Attributes and Associations ----- ## **** Generate attribute **** #foreach ( $attribute in $entity.attributes ) #set ($typeName = $attribute.type.fullyQualifiedName) @@ -59,8 +59,9 @@ #end #end #end + #endregion - // ----- Accessors ----- + #region Accessors ## **** Generate accessors for attributes **** #foreach ( $attribute in $entity.attributes ) #set ($typeName = $attribute.type.fullyQualifiedName) @@ -92,7 +93,9 @@ #end #end - // ----- Abstract Methods ----- + #endregion + + #region Abstract Methods #foreach ($operation in $entity.businessOperations) #set ($returnType = $operation.returnType) #set ($signature = $operation.signature) @@ -102,7 +105,9 @@ $operation.visibility abstract $returnType.fullyQualifiedName $signature; #end - // ----- Helper Methods ----- + #endregion + + #region Overriden Methods #if ($generateEntityEqualsAndHashCode.equalsIgnoreCase('true')) #set ($identifiers = $entity.getIdentifiers(false)) /// <summary> @@ -112,7 +117,7 @@ /// but since it extends the <code>$entity.generalization.fullyQualifiedEntityImplementationName</code> class /// it will simply delegate the call up there. /// - /// @see $entity.generalization.fullyQualifiedEntityName#Equals(Object) + /// <see cref="$entity.generalization.fullyQualifiedEntityName#Equals(Object)"/> #else /// and is not extending any other entity, /// so this method will only return <code>true</code> if the argument reference and <code>this</code> @@ -124,7 +129,7 @@ /// equal the identifiers of the argument entity. The <code>equals</code> method of the parent entity /// will also need to return <code>true</code>. Returns <code>false</code> otherwise. /// - /// @see $entity.generalization.fullyQualifiedEntityName#Equals(Object) + /// <see cref="$entity.generalization.fullyQualifiedEntityName#Equals(Object)"/> #else /// Returns <code>true</code> if the argument is a $entity.entityName instance and all identifiers for this entity /// equal the identifiers of the argument entity. Returns <code>false</code> otherwise. @@ -140,7 +145,7 @@ /// but since it extends the <code>$entity.generalization.fullyQualifiedEntityImplementationName</code> class /// it will simply delegate the call up there. /// - /// @see $entity.generalization.fullyQualifiedEntityName#GetHashCode() + /// <see cref="$entity.generalization.fullyQualifiedEntityName#GetHashCode()"/> #else /// and is not extending any other entity, /// so this method will only take the identifiers of this entity into account when calculating the hash code. @@ -149,7 +154,7 @@ #if ($entity.generalization) /// Returns a hash code based on this entity's identifiers and the hash code of the parent entity. /// - /// @see $entity.generalization.fullyQualifiedEntityName#GetHashCode() + /// <see cref="$entity.generalization.fullyQualifiedEntityName#GetHashCode()"/> #else /// Returns a hash code based on this entity's identifiers. #end @@ -172,43 +177,46 @@ #end return sb.ToString(); } + #endregion #end #if (!$entity.abstract && ($visualStudioVersion != "2003")) #set ($concreteBaseClass = $entity.generalization && !$entity.generalization.abstract) + #region Factory /// <summary> - /// Constructs new instances of {@link ${entity.fullyQualifiedName}}. + /// Constructs new instances of <seealso cref="${entity.fullyQualifiedName}"/>. /// </summary> public static#if ($concreteBaseClass) new#end class Factory { /// <summary> - /// Constructs a new instance of {@link ${entity.fullyQualifiedName}}. + /// Constructs a new instance of <seealso cref="${entity.fullyQualifiedName}"/>. /// </summary> public static $entity.fullyQualifiedName newInstance() { return new ${entity.fullyQualifiedEntityImplementationName}(); } } - + #endregion #end // HibernateEntity.vsl merge-point } #if (!$entity.abstract && ($visualStudioVersion == "2003")) #set ($concreteBaseClass = $entity.generalization && !$entity.generalization.abstract) - + #region Factory /// <summary> - /// Constructs new instances of {@link ${entity.fullyQualifiedName}}. + /// Constructs new instances of <seealso cref="${entity.fullyQualifiedName}"/>. /// </summary> public class ${entity.Name}Factory { /// <summary> - /// Constructs a new instance of {@link ${entity.fullyQualifiedName}}. + /// Constructs a new instance of <seealso cref="${entity.fullyQualifiedName}"/>. /// </summary> public static $entity.fullyQualifiedName newInstance() { return new ${entity.fullyQualifiedEntityImplementationName}(); } } + #endregion #end #if ($stringUtils.isNotBlank($entity.packageName)) } 1.2 +1 -1 cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEntityImpl.vsl Index: NHibernateEntityImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/NHibernateEntityImpl.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NHibernateEntityImpl.vsl 8 Mar 2006 04:15:24 -0000 1.1 +++ NHibernateEntityImpl.vsl 9 Apr 2006 14:32:40 -0000 1.2 @@ -12,7 +12,7 @@ { #end /// <summary> - /// @see $entity.fullyQualifiedEntityName + /// <see cref="$entity.fullyQualifiedEntityName"/> /// </summary> [Serializable] public#if ($entity.abstract) abstract#end class $entity.entityImplementationName |