From: Vance K. <va...@us...> - 2006-02-06 04:17:29
|
User: vancek Date: 06/02/05 20:17:23 Added: andromda-ejb3/src/site/xdoc howto.xml Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/xdoc/howto.xml Index: howto.xml =================================================================== <?xml version="1.0" encoding="iso-8859-1"?> <document> <properties> <author email="va...@us...">Vance Karimi</author> <title>AndroMDA - EJB3 - HowTo</title> </properties> <body> <section name="Modeling example"> <p class="highlight"> If you want to know more about how to model your application using the <a href="http://java.sun.com/products/ejb/docs.html">EJB 3.0</a> cartridge with AndroMDA, you have arrived at the right place; step-by-step we will work through an example showing the cartridge's features. Read on for more information. </p> <p> The AndroMDA EJB3 cartridge focuses on the persistence and business tier only. The presentation tier can be handled in AndroMDA as well, but for that we recommend using the <a href="../andromda-bpm4struts-cartridge/index.html">Bpm4Struts</a> cartridge. </p> <p> In this how-to we will cover the following topics: <ul> <li> <a href="howto1.html">Entities</a> <ul> <li><a href="howto1.html#Entity_Operations">Entity Operations</a></li> <li><a href="howto1.html#Entity_Relation_Table">Entity Relation Table</a></li> <li><a href="howto1.html#Primary_Key_Identifiers">Primary Key Identifier</a></li> <li><a href="howto1.html#Unique_Attributes">Unique Attributes</a></li> <li><a href="howto1.html#Attribute_Fetch_Type">Attribute Fetch Type</a></li> <li><a href="howto1.html#Transient_Attribute">Transient Attribute</a></li> <li><a href="howto1.html#Version_Attribute">Version Attribute</a></li> <li><a href="howto1.html#Attribute_Multiplicity">Attribute Multiplicity</a></li> <li><a href="howto1.html#Constant_Attribute">Constant Attribute</a></li> <li><a href="howto1.html#Nullable_Parameters">Nullable Parameters</a></li> <li><a href="howto1.html#LOB_CLOB_Attribute">LOB/CLOB Attributes</a></li> <li><a href="howto1.html#Column_Specifics">Column Specifics</a></li> <li><a href="howto1.html#Listener_Callback">Listener Callback</a></li> </ul> </li> <li> <a href="howto2.html">Relationships</a> <ul> <li><a href="howto2.html#Cascading">Cascading</a></li> <li><a href="howto2.html#Fetch_Type">Fetch Type</a></li> <li><a href="howto2.html#Ordering_Collection_Valued_Association">Ordering Collection Valued Association</a></li> <li><a href="howto2.html#Join_Table_Many_To_Many">Join Table for Many-To-Many Relationship</a></li> <li><a href="howto2.html#Aggregation_Composition">Aggregation and Composition</a></li> </ul> </li> <li> <a href="howto3.html">Services</a> <ul> <li><a href="howto3.html#Session_Type">Session Type</a></li> <li><a href="howto3.html#View_Interface">View Interfaces</a></li> <li><a href="howto3.html#Transactions">Transactions</a></li> <li><a href="howto3.html#Security">Security</a></li> <li><a href="howto3.html#Resource_Injection">Resource Injections</a></li> <li><a href="howto3.html#Nullable_Parameter">Nullable Parameters</a></li> <li><a href="howto3.html#Session_Delegate">Session Delegate</a></li> <li><a href="howto3.html#Listener_Callback">Listener Callback</a></li> <li><a href="howto3.html#Interceptors">Interceptors</a></li> <li><a href="howto3.html#JNDI_Bindings">JNDI Bindings</a></li> <li><a href="howto3.html#Persistence_Context_Entity_Manager">Persistence Context Entity Manager</a></li> <li><a href="howto3.html#EJB_Injections">EJB Injections</a></li> <li><a href="howto3.html#JMS_Injections">JMS Injections</a></li> <li><a href="howto3.html#EJB_Timer_Service">EJB Timer Service</a></li> </ul> </li> <li><a href="howto4.html">Composite Primary Key</a></li> <li><a href="howto5.html">Non-Persistent Enumerations</a></li> <li><a href="howto6.html">OCL to Query generator (finder methods)</a></li> <li><a href="howto7.html">Exception Handling</a></li> <li><a href="howto8.html">Security</a></li> </ul> </p> <p> You can download the UML model containing all models for all sections <a href="resources/HowToModel.xml.zip">here</a>. </p> <p> In order to start the tutorial click <a href="howto1.html">here</a>. </p> <subsection name="Summary"> <p> Here's already a brief summary of the information found in this how-to. </p> <p> <table> <tr> <th>Feature</th> <th>Element</th> <th>How</th> </tr> <tr> <td>Hibernate POJO</td> <td>class</td> <td>add the <![CDATA[<<Entity>>]]> stereotype</td> </tr> <tr> <td>Stand-alone Spring POJO Service <strong>OR</strong> Spring POJO Service wrapped with an EJB Session Bean</td> <td>class</td> <td>add the <![CDATA[<<Service>>]]> stereotype</td> </tr> <tr> <td>Value object</td> <td>class</td> <td>add the <![CDATA[<<ValueObject>>]]> stereotype, draw a dependency from an <![CDATA[<<Entity>>]]> to this class in order to have a transformation method generated in the entity's DAO</td> </tr> <tr> <td>Enumeration</td> <td>class</td> <td>assign a class with the <![CDATA[<<Enumeration>>]]> stereotype as the type of an entity's attribute</td> </tr> <tr> <td>Hibernate QL</td> <td>operation</td> <td>add an OCL body on an operation with the UML query flag set to true</td> </tr> <tr> <td>Unique attribute</td> <td>class</td> <td>add the <![CDATA[<<Unique>>]]> stereotype to an attribute, the attribute's class must carry the <![CDATA[<<Entity>>]]> stereotype</td> </tr> <tr> <td>Nullable parameter</td> <td>operation parameter</td> <td>only useful on operations modeled for <![CDATA[<<Entity>>]]> and <![CDATA[<<Service>>]]> classes</td> </tr> </table> </p> </subsection> </section> </body> </document> |