[ http://jira.andromda.org/browse/MISC-35?page=history ]

Wouter Zoons updated MISC-35:
-----------------------------

    Attachment: ea-profile.xml

> Profile-XML for EnterpriseArchitect
> -----------------------------------
>
>          Key: MISC-35
>          URL: http://jira.andromda.org/browse/MISC-35
>      Project: Miscellaneous
>         Type: Improvement
>  Environment: EnterpriseArchitect 5
>     Reporter: Thomas Schmidt
>     Assignee: Wouter Zoons
>     Priority: Minor
>  Attachments: ea-profile.xml
>
> create an XSLT to generate an EA profile from the MagicDraw one
> see:http://galaxy.andromda.org/forum/viewtopic.php?p=3924#3924
> simple EA profile for hibernate cartridge:
> <?xml version="1.0"  encoding="windows-1252"?>
> <UMLProfile profiletype="uml2">
>       <Documentation id="F550DF32-C" name="AndroMDA" version="1.0" 
> notes="AndroMDA"/>
>       <!-- The profile content -->
>       <Content>
>               <!-- List of stereotypes used in this profile-->
>               <Stereotypes>
>                       <Stereotype name="Criteria" notes=" Produces a criteria 
> search facility consisting of three helper classes being written to the 
> package for extra spring classes and a criteria value object. If you add a 
> finder method to a Hibernate entity, giving it a parameter that is of a class 
> that is stereotyped as a &lt;&lt;Criteria&gt;&gt;, the finder will contain 
> code to construct a Hibernate criteria query." cx="90" cy="70" bgcolor="-1" 
> fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="">
>                               <AppliesTo>
>                                       <Apply type="Class"/>
>                               </AppliesTo>
>                               <Redefinitions/>
>                               <TaggedValues/>
>                               <Constraints/>
>                       </Stereotype>
>                       <Stereotype name="EmbeddedValue" notes=" Identifies a 
> class as an  EmbeddedValue  . This corresponds to a Hibernate component in 
> Hibernate." cx="130" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" 
> borderwidth="-1" hideicon="">
>                               <AppliesTo>
>                                       <Apply type="Class"/>
>                               </AppliesTo>
>                               <Redefinitions/>
>                               <TaggedValues/>
>                               <Constraints/>
>                       </Stereotype>
>                       <Stereotype name="Unique" notes=" Identifies an 
> attribute as unique." cx="90" cy="70" bgcolor="-1" fontcolor="-1" 
> bordercolor="-1" borderwidth="-1" hideicon="">
>                               <AppliesTo>
>                                       <Apply type="Attribute"/>
>                               </AppliesTo>
>                               <Redefinitions/>
>                               <TaggedValues/>
>                               <Constraints/>
>                       </Stereotype>
>                       <Stereotype name="Identifier" notes=" Identifies an 
> attribute as an identifier." cx="307" cy="70" bgcolor="-1" fontcolor="-1" 
> bordercolor="-1" borderwidth="-1" hideicon="">
>                               <AppliesTo>
>                                       <Apply type="Attribute"/>
>                               </AppliesTo>
>                               <Redefinitions/>
>                               <TaggedValues>
>                                       <Tag 
> name="@andromda.persistence.assigned.identifier" type="boolean" 
> description="Indicates whether or not the identifier is assigned (this means 
> that the identifier is manually assigned as opposed to automatically 
> generated)" unit="" values="true,false" default="true"/>
>                               </TaggedValues>
>                               <Constraints/>
>                       </Stereotype>
>                       <Stereotype name="Enumeration" notes="Indicates that 
> the class will be a persistent type-safe enumeration, implemented by means of 
> a Hibernate UserType. Any attribute modeled on this entity will result in an 
> enumeration literal. You may assign an  initial value  to such an attribute, 
> Hibernate will persist that specified value for the corresponding literal. If 
> no such value is specified the name of the attribute is assumed. Make sure 
> there are no naming collisions between the initial values and the attribute 
> names you model.  Please note: these enumerations use a  String  in order to 
> persist their unique value." cx="112" cy="70" bgcolor="-1" fontcolor="-1" 
> bordercolor="-1" borderwidth="-1" hideicon="">
>                               <AppliesTo>
>                                       <Apply type="Class"/>
>                               </AppliesTo>
>                               <Redefinitions/>
>                               <TaggedValues/>
>                               <Constraints/>
>                       </Stereotype>
>                       <Stereotype name="Entity" notes="Produces Hibernate 
> entities (interfaces and classes) and Spring Data Access Objects." cx="50" 
> cy="50" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" 
> hideicon="">
>                               <AppliesTo>
>                                       <Apply type="Class"/>
>                               </AppliesTo>
>                               <Redefinitions/>
>                               <TaggedValues>
>                                       <Tag 
> name="@andromda.hibernate.ehcache.eternal" type="boolean" 
> description="EhCache property. Defines if elements are eternal." unit="" 
> values="true,false" default=""/>
>                                       <Tag 
> name="@andromda.hibernate.ehcache.maxElementsInMemory" type="int" 
> description="EhCache property. Defines the maximum number of objects that 
> will be created in memory." unit="" values="" default=""/>
>                                       <Tag 
> name="@andromda.hibernate.ehcache.overflowToDisk" type="boolean" 
> description="EhCache property. Defines if elements can overflow to disk" 
> unit="" values="true,false" default=""/>
>                                       <Tag 
> name="@andromda.hibernate.ehcache.timeToIdleSeconds" type="int" 
> description="EhCache property. Defines the time to idle for an element before 
> it expires." unit="" values="" default=""/>
>                                       <Tag 
> name="@andromda.hibernate.ehcache.timeToLiveSeconds" type="int" 
> description="EhCache property. Defines the time to live for an element before 
> it expires." unit="" values="" default=""/>
>                                       <Tag 
> name="@andromda.hibernate.entity.cache" type="enumeration" 
> description="Defines the cache strategy for the Entity. " unit="" 
> values="read-write,nonstrict-read-write,read-only" default=""/>
>                                       <Tag 
> name="@andromda.hibernate.entity.dynamicInsert" type="boolean" 
> description="Defines if the entity will limit the SQL insert statement to 
> properties with values." unit="" values="true,false" default="true"/>
>                                       <Tag 
> name="@andromda.hibernate.entity.dynamicUpdate" type="boolean" 
> description="Defines if the entity will limit the SQL update statements to 
> properties that are modified." unit="" values="true,false" default="true"/>
>                                       <Tag 
> name="@andromda.hibernate.entity.proxy" type="boolean" description="Defines 
> if a proxy will be enabled for the entity. Overrrides the 
> &quot;hibernateProxy&quot; namespace property." unit="" values="true,false" 
> default=""/>
>                                       <Tag 
> name="@andromda.hibernate.generator.class" type="enumeration" 
> description="Used to define the hibernate generator class (increment, 
> identity, sequence, hilo, seqhilo, uuid.hex, uuid.string, native, assigned, 
> foreign)" unit="" 
> values="foreign,assigned,native,uuid.hex,uuid.string,hilo,seqhilo,identity,sequence,increment"
>  default="assigned"/>
>                                       <Tag 
> name="@andromda.hibernate.inheritance" type="enumeration" description="Used 
> to override the default hibernate inheritance strategy defined by the 
> hibernateInheritanceStrategy namespace property." unit="" 
> values="class,concrete,subclass,interface" default="subclass"/>
>                                       <Tag name="@andromda.hibernate.version" 
> type="String" description="Specfies wheter or not the entity will have a 
> version property. If a value is present, then the entity will have a version 
> property with the name specified within the tagged value." unit="" values="" 
> default="valor"/>
>                               </TaggedValues>
>                               <Constraints/>
>                       </Stereotype>
>               </Stereotypes>
>               <TaggedValueTypes/>
>       </Content>
> </UMLProfile>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-devel mailing list
Andromda-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to