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: Eric C. <ecr...@us...> - 2006-03-25 20:24:09
|
User: ecrutchfield Date: 06/03/25 12:24:02 Modified: andromda-nspring/src/main/resources/META-INF/andromda cartridge.xml Log: comment out reference to non-existent macrolibrary Revision Changes Path 1.2 +1 -1 cartridges/andromda-nspring/src/main/resources/META-INF/andromda/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nspring/src/main/resources/META-INF/andromda/cartridge.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- cartridge.xml 8 Mar 2006 04:18:36 -0000 1.1 +++ cartridge.xml 25 Mar 2006 20:24:02 -0000 1.2 @@ -1,7 +1,7 @@ <cartridge> <templateEngine> - <macrolibrary name="templates/spring/RenderPreconditions.vm"/> + <!--macrolibrary name="templates/spring/RenderPreconditions.vm"/--> <!-- cartridge-macrolibrary merge-point--> </templateEngine> |
From: Eric C. <ecr...@us...> - 2006-03-25 03:48:55
|
User: ecrutchfield Date: 06/03/24 19:48:53 Modified: andromda-nspring/src/main/resources/templates/nspring NSpringHibernateDaoBase.vsl Log: fixes bug in finder methods where arguments that were of a primitive datatype (e.g. long, int) were rendered as "new long(<argument name>)". Revision Changes Path 1.2 +1 -1 cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringHibernateDaoBase.vsl Index: NSpringHibernateDaoBase.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringHibernateDaoBase.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NSpringHibernateDaoBase.vsl 8 Mar 2006 04:18:42 -0000 1.1 +++ NSpringHibernateDaoBase.vsl 25 Mar 2006 03:48:53 -0000 1.2 @@ -385,7 +385,7 @@ #set ($count = $velocityCount - 1) #set ($argumentValue = $argument.name) #if($argument.type.primitive) -#set ($argumentValue = "new ${argument.type.wrapperName}($argument.name)") +#set ($argumentValue = "(${argument.type.wrapperName})$argument.name") #elseif ($argument.type.enumeration) #set ($argumentValue = "${argument.name}") #end |
From: Eric C. <ecr...@us...> - 2006-03-25 03:45:14
|
User: ecrutchfield Date: 06/03/24 19:45:12 Modified: andromda-nspring/src/main/resources/templates/nspring NSpringDaoFactory.vsl Log: fixes problem where compiling fails because the Dao's are not referenced using the full namespace. Revision Changes Path 1.2 +4 -5 cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringDaoFactory.vsl Index: NSpringDaoFactory.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringDaoFactory.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NSpringDaoFactory.vsl 8 Mar 2006 04:18:42 -0000 1.1 +++ NSpringDaoFactory.vsl 25 Mar 2006 03:45:12 -0000 1.2 @@ -21,14 +21,13 @@ public class DaoFactory { #foreach($entity in $entities) - private static I${entity.entityName}Dao ${entity.entityName}Dao = null; -#end -#foreach($entity in $entities) - public static I${entity.entityName}Dao Get${entity.entityName}Dao() + private static ${entity.packageName}.I${entity.entityName}Dao ${entity.entityName}Dao = null; + + public static ${entity.packageName}.I${entity.entityName}Dao Get${entity.entityName}Dao() { if (${entity.entityName}Dao == null) - ${entity.entityName}Dao = new ${entity.entityName}DaoImpl(); + ${entity.entityName}Dao = new ${entity.packageName}.${entity.entityName}DaoImpl(); return ${entity.entityName}Dao; } |
From: Vance K. <va...@us...> - 2006-03-20 08:52:50
|
User: vancek Date: 06/03/20 00:52:50 Modified: andromda-ejb3/src/site/xdoc howto.xml Log: added caching and clustering howto content list. Revision Changes Path 1.11 +12 -1 cartridges/andromda-ejb3/src/site/xdoc/howto.xml Index: howto.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- howto.xml 10 Mar 2006 03:02:29 -0000 1.10 +++ howto.xml 20 Mar 2006 08:52:49 -0000 1.11 @@ -39,7 +39,7 @@ <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#LOB_Attribute">LOB BLOB/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> @@ -52,6 +52,8 @@ <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> + <li><a href="howto2.html#Transient_Relationships">Transient Relationships</a></li> + <li><a href="howto2.html#Tips">Tips</a></li> </ul> </li> <li> @@ -158,6 +160,15 @@ <li> <a href="howto16.html">Manageable Entities</a> </li> + <li> + <a href="howto17.html">Caching and Clustering</a> + <ul> + <li><a href="howto17.html#Cache_Config">Cache Configuration</a></li> + <li><a href="howto17.html#Entity_Cache">Entity Caching</a></li> + <li><a href="howto17.html#Association_Cache">Association Caching</a></li> + <li><a href="howto17.html#Query_Cache">Query Caching</a></li> + </ul> + </li> </ul> </p> <p> |
From: Vance K. <va...@us...> - 2006-03-20 08:51:48
|
User: vancek Date: 06/03/20 00:51:46 Added: andromda-ejb3/src/site/xdoc howto17.xml Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/xdoc/howto17.xml Index: howto17.xml =================================================================== <?xml version="1.0" encoding="iso-8859-1"?> <document> <properties> <author email="va...@us...">Vance Karimi</author> <title>AndroMDA - EJB3 - HowTo Caching and Clustering</title> </properties> <body> <section name="Caching and Clustering"> <p> This howto will guide you to use the EJB3 cartridge caching and clustering facilities, based on the JBoss distributed/clustered caching environment. </p> <p> <i> JBoss Cache supports a high performance, in-memory, transactional, and replicated cache for the cluster. </i> </p> <p> JBoss Cache has 2 types of caching </p> <p> <ul> <li> <b>Entity Cache</b> - caching database objects like entity POJOs and query results. <ul> <li>POJOs are cached in-memory.</li> <li>Reduces round trips to the database server.</li> <li> Access by one node in the cluster makes the POJO available to all nodes via the distributed entity cache. </li> </ul> </li> <li> <b>State Cache</b> - stores application state information. <ul> <li>HTTP session state can be cached and accessed across all nodes.</li> <li>Caching includes stateful session beans.</li> <li>Can cache <i>transient</i> properties across nodes</li> </ul> </li> </ul> </p> <p> The following example was taken from the manageable entities howto with the caching options enabled. The manageable components are not relevent here and will not be discussed. </p> <p> <img src="images/org/andromda/test/17/a/uml.gif"/> </p> <p> <ul> <li class="gen">Auto-generated source that does not need manual editing</li> <li class="impl">Auto-generated source that should be edited manually</li> <li class="changed">File that is affected by the modifications applied in this section</li> </ul> </p> <p> <ul> <li class="gen"><a class="changed" href="src/org/andromda/test/howto17/a/CarEmbeddable.java.txt"><code>CarEmbeddable.java</code></a></li> <li class="impl"><a href="src/org/andromda/test/howto17/a/Car.java.txt"><code>Car.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/CarType.java.txt"><code>CarType.java</code></a></li> <li class="gen"><a class="changed" href="src/org/andromda/test/howto17/a/PersonEmbeddable.java.txt"><code>PersonEmbeddable.java</code></a></li> <li class="impl"><a href="src/org/andromda/test/howto17/a/Person.java.txt"><code>Person.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/ServiceLocator.java.txt"><code>ServiceLocator.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/RentalServiceBean.java.txt"><code>RentalServiceBean.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/RentalServiceRemote.java.txt"><code>RentalServiceRemote.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/RentalServiceDelegate.java.txt"><code>RentalServiceDelegate.java</code></a></li> <li class="impl"><a href="src/org/andromda/test/howto17/a/RentalServiceBeanImpl.java.txt"><code>RentalServiceBeanImpl.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/RentalServiceException.java.txt"><code>RentalServiceException.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/RentalException.java.txt"><code>RentalException.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/ejb-jar.xml.txt"><code>ejb-jar.xml</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/jboss.xml.txt"><code>jboss.xml</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto17/a/persistence.xml.txt"><code>persistence.xml</code></a></li> <li class="gen"><a class="changed" href="src/org/andromda/test/howto17/a/ejb3-entity-cache-service.xml.txt"><code>ejb3-entity-cache-service.xml</code></a></li> </ul> </p> <a name="Cache_Config"/> <subsection name="Cache Configuration"> <p> The cartridge allows you to configure a few caching properties through namespace properties in the andromda.xml descriptor. As a minimum, make sure the <code>hibernateCacheProvider</code> and <code>hibernateTreecacheMbeanObject</code> properties are defined to use inbuilt JBoss Cache with JBoss. <source language="xml"><![CDATA[ <namespace name="ejb3"> <properties> ... <property name="hibernateCacheProvider">org.jboss.ejb3.entity.TreeCacheProviderHook</property> <property name="hibernateTreecacheMbeanObject">jboss.cache:service=EJB3EntityTreeCache</property> <!-- uncomment to enable default entity cache settings <property name="hibernateEntityCache">TRANSACTIONAL</property> --> <!-- uncomment to enable default association caching configuration <property name="hibernateAssociationCache">TRANSACTIONAL</property> --> ... </properties> </namespace> ]]></source> The <code>hibernateEntityCache</code> and <code>hibernateAssociationCache</code> properties define the default cache settings if you choose to enable entity and association caching. </p> <p> Your <code>persistence.xml</code> descriptor will look like: <source language="xml"><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <!-- Attention: Generated code! Do not modify by hand! Generated by: persistence.xml.vsl in andromda-ejb3-cartridge. --> <persistence> <persistence-unit name="howtomodel2"> <jta-data-source>java:/jdbc/howtomodel2</jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="update"/> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> <property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook"/> <property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache"/> </properties> </persistence-unit> </persistence> ]]></source> </p> </subsection> <a name="Entity_Cache"/> <subsection name="Entity Cache"> <p> In situations where data, persisted by entity beans are rarely changed, you can employ the entity cache option to avoid unnecessary round-trips to the database. </p> <p> To enable entity caching, you enable the <code>hibernateEnableCache</code> ejb3 namespace property in your andromda.xml like so: <source language="xml"><![CDATA[ <namespace name="ejb3"> <properties> ... <property name="hibernateEnableCache">true</property> <property name="useDefaultCacheRegion">false</property> ... </properties> </namespace> ]]></source> </p> <p> The <code>useDefaultCacheRegion</code> property allows you to specify whether you want all entities use the default cache region specified in <code>ejb3-entity-cache-service.xml</code>. By default, this is set to <code>false</code>. If you set to <code>true</code>, the user specified cache regions for entities will not be defined. </p> <p> If you enable the default entity cache strategy in your andromda.xml descriptor, by enabling <code>hibernateEntityCache</code>, then the cache strategy for all entities will be assigned using its specified value. To override this default value, you can model the <code>@andromda.persistence.entity.cache</code> tagged value on individual entities. </p> <p> Once you have enabled entity caching, you will notice the <code>@org.hibernate.annotations.Cache</code> annotation at the class level in all entity mapped superclasses. </p> <p> The corresponding entity cache region is defined in the <code>ejb3-entity-cache-service.xml</code> configuration service file for the <code>Car</code> and <code>Person</code> entities: <source language="xml"><![CDATA[ .... <!-- The Car entity cache --> <region name="/org/andromda/howto2/rental/Car"> <attribute name="maxNodes">10000</attribute> <attribute name="timeToLiveSeconds">5000</attribute> </region> <!-- The Person entity cache --> <region name="/org/andromda/howto2/rental/Person"> <attribute name="maxNodes">10000</attribute> <attribute name="timeToLiveSeconds">5000</attribute> </region> .... ]]></source> </p> <p> You must deploy the <code>ejb3-entity-cache-service.xml</code> to your JBoss deploy folder as you do with your ear package bundle. Remember, if you have other cached enabled applications, you must merge the changes to the <code>ejb3-entity-cache-service.xml</code> manually, otherwise you will override previous configurations. </p> </subsection> <a name="Association_Cache"/> <subsection name="Association Cache"> <p> To enable entity association relationship caching, you enable the <code>hibernateEnableAssociationsCache</code> ejb3 namespace property in your andromda.xml like so: <source language="xml"><![CDATA[ <namespace name="ejb3"> <properties> ... <property name="hibernateEnableCache">true</property> <property name="hibernateEnableAssociationsCache">true</property> ... </properties> </namespace> ]]></source> You must have <code>hibernateEnableCache</code> enabled. </p> <p> If you enable the default association cache strategy in your andromda.xml descriptor, by enabling <code>hibernateAssociationCache</code>, then the cache strategy for all collection associationas will be assigned using its specified value. To override this default value, you can model the <code>@andromda.persistence.association.cache</code> tagged value on individual target association ends. </p> <p> Once you have enabled entity association caching, you will notice the <code>@org.hibernate.annotations.Cache</code> annotation on One-To-Many and Many-To-Many relationships. </p> </subsection> <a name="Query_Cache"/> <subsection name="Query Cache"> <p> To enable entity query caching, you enable the <code>hibernateUseQueryCache</code> ejb3 namespace property in your andromda.xml like so: <source language="xml"><![CDATA[ <namespace name="ejb3"> <properties> ... <property name="hibernateEnableCache">true</property> <property name="hibernateUseQueryCache">true</property> <property name="useDefaultCacheRegion">false</property> ... </properties> </namespace> ]]></source> You must have <code>hibernateEnableCache</code> enabled. You then need to enable caching for each finder method using the <code>@andromda.ejb.query.useCache</code> tagged value. </p> <p> The <code>useDefaultCacheRegion</code> property allows you to specify whether you want all queries to use the default cache region specified in <code>ejb3-entity-cache-service.xml</code>. By default, this is set to <code>false</code>. If you set to <code>true</code>, the user specified cache regions will not be defined and the hint on queries to set the cache region will not be assigned. </p> <p> The cartridge will look for at least one query which is marked for caching. If it finds one such query, the <code>persistence.xml</code> descriptor will include the <code>hibernate.cache.use_query_cache</code> like so: <source language="xml"><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <!-- Attention: Generated code! Do not modify by hand! Generated by: persistence.xml.vsl in andromda-ejb3-cartridge. --> <persistence> <persistence-unit name="howtomodel2"> <jta-data-source>java:/jdbc/howtomodel2</jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="update"/> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> <property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook"/> <property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache"/> <property name="hibernate.cache.use_query_cache">true</property> </properties> </persistence-unit> ]]></source> </p> <p> In the above example, the <code>Car</code> entity has the <code>findByType</code> finder marked as cacheable. When generating the Car mapped superclass <code>findByType</code> finder method, the cartridge will set the <code>org.hibernate.cacheRegion</code> hint automatically like so: <source><![CDATA[ public static java.util.List<Car> findByType(javax.persistence.EntityManager em, org.andromda.howto2.rental.CarType type) { javax.persistence.Query query = em.createQuery("FROM Car AS car WHERE car.type = :type"); query.setParameter("type", type.name()); query.setHint("org.hibernate.cacheRegion", "/org/andromda/howto2/rental/Car_findByType"); return query.getResultList(); } ]]></source> </p> <p> The corresponding cache region is defined in the <code>ejb3-entity-cache-service.xml</code> configuration service file: <source language="xml"><![CDATA[ .... <!-- The Car findByType query cache --> <region name="/org/andromda/howto2/rental/Car_findByType"> <attribute name="maxNodes">1000</attribute> <attribute name="timeToLiveSeconds">5000</attribute> </region> .... ]]></source> </p> <p> You must deploy the <code>ejb3-entity-cache-service.xml</code> to your JBoss deploy folder as you do with your ear package bundle. Remember, if you have other cached enabled applications, you must merge the changes to the <code>ejb3-entity-cache-service.xml</code> manually, otherwise you will override previous configurations. </p> </subsection> <a name="Clustering"/> <subsection name="Clustering Session Beans"> <p> Enabling session bean clustering is achieved by setting the <code>enableClustering</code> ejb3 namespace property to true. <source language="xml"><![CDATA[ <namespace name="ejb3"> <properties> ... property name="enableClustering">true</property> ... </properties> </namespace> ]]></source> This will automatically add the <code>@org.jboss.annotation.ejb.Clustered</code> JBoss annotation to all session beans which will enable load-balancing and failover of all requests. The default load balance policy <code>org.jboss.ha.framework.interfaces.RandomRobin</code> is used. </p> <p> There is nothing more you need to do for stateless session beans. For stateful session beans, you must make sure that the JBoss Cache session state replication service is deployed. Simply make sure that <code>ejb3-clustered-sfsbcache-service.xml</code> exists in your JBoss deploy directory. </p> </subsection> <a name="Further_Reading"/> <subsection name="Further Reading"> <p> Visit the following links to find out more information </p> <p> <ul> <li>http://clusterstore.demo.jboss.com/</li> <li>http://docs.jboss.org/ejb3/app-server/tutorial/clusteredentity/clusteredentity.html</li> </ul> </p> </subsection> </section> </body> </document> |
From: Vance K. <va...@us...> - 2006-03-20 08:51:28
|
User: vancek Date: 06/03/20 00:51:24 Modified: andromda-ejb3/src/site/xdoc howto16.xml Log: added navigation to get to caching and clustering howto. Revision Changes Path 1.2 +5 -0 cartridges/andromda-ejb3/src/site/xdoc/howto16.xml Index: howto16.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto16.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- howto16.xml 10 Mar 2006 03:03:11 -0000 1.1 +++ howto16.xml 20 Mar 2006 08:51:23 -0000 1.2 @@ -100,5 +100,10 @@ manageable entities</a> for AndroMDA. </p> </section> + <section name="Next"> + <p> + Next you can learn about caching and clustering, click <a href="howto17.html">here</a>. + </p> + </section> </body> </document> |
From: Vance K. <va...@us...> - 2006-03-20 08:50:18
|
User: vancek Date: 06/03/20 00:50:17 Added: andromda-ejb3/src/site/resources/images/org/andromda/test/17/a uml.gif Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/17/a/uml.gif <<Binary file>> |
From: Vance K. <va...@us...> - 2006-03-20 08:50:02
|
User: vancek Date: 06/03/20 00:50:01 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/17/a - New directory |
From: Vance K. <va...@us...> - 2006-03-20 08:50:02
|
User: vancek Date: 06/03/20 00:50:00 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/17 - New directory |
From: Vance K. <va...@us...> - 2006-03-20 08:49:00
|
User: vancek Date: 06/03/20 00:48:59 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: added useDefaultCacheRegion to EJB3EntityFacade. Revision Changes Path 1.28 +163 -171 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-03-20 08:48:07
|
User: vancek Date: 06/03/20 00:48:06 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3FinderMethodFacadeLogicImpl.java Log: refactored handleIsUseQueryCache to not lookup the namepace default value. Revision Changes Path 1.5 +1 -11 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.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- EJB3FinderMethodFacadeLogicImpl.java 14 Mar 2006 06:24:10 -0000 1.4 +++ EJB3FinderMethodFacadeLogicImpl.java 20 Mar 2006 08:48:06 -0000 1.5 @@ -27,11 +27,6 @@ */ 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 ------------------------------- public EJB3FinderMethodFacadeLogicImpl (Object metaObject, String context) @@ -127,12 +122,7 @@ { 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 + if (StringUtils.isNotBlank(queryCacheEnabledStr)) { queryCacheEnabled = BooleanUtils.toBoolean(queryCacheEnabledStr); } |
From: Vance K. <va...@us...> - 2006-03-20 08:47:02
|
User: vancek Date: 06/03/20 00:47:01 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3EntityFacadeLogicImpl.java Log: implemented handleIsUseDefaultCacheRegion. Revision Changes Path 1.17 +14 -0 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.16 retrieving revision 1.17 diff -u -w -r1.16 -r1.17 --- EJB3EntityFacadeLogicImpl.java 16 Mar 2006 15:32:37 -0000 1.16 +++ EJB3EntityFacadeLogicImpl.java 20 Mar 2006 08:47:00 -0000 1.17 @@ -161,6 +161,12 @@ */ private static final String HIBERNATE_ENTITY_CACHE = "hibernateEntityCache"; + /** + * The property that determines whether to use the default cache region for + * entities and queries. + */ + private static final String USE_DEFAULT_CACHE_REGION = "useDefaultCacheRegion"; + // ---------------- constructor ------------------------------- public EJB3EntityFacadeLogicImpl (Object metaObject, String context) @@ -1083,4 +1089,12 @@ { return BooleanUtils.toBoolean(String.valueOf(this.getConfiguredProperty(HIBERNATE_ENABLE_CACHE))); } + + /*( + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogic#handleIsUseDefaultCacheRegion() + */ + protected boolean handleIsUseDefaultCacheRegion() + { + return BooleanUtils.toBoolean(String.valueOf(this.getConfiguredProperty(USE_DEFAULT_CACHE_REGION))); + } } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-03-20 08:46:08
|
User: vancek Date: 06/03/20 00:46:07 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml Log: renamed hibernateEnableQueryCache to hibernateUseQueryCache property. defined useDefaultCacheRegion property. set the hibernateEntityCache and hibernateAssociationCache default value to TRANSACTIONAL. Revision Changes Path 1.19 +15 -3 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.18 retrieving revision 1.19 diff -u -w -r1.18 -r1.19 --- namespace.xml 14 Mar 2006 06:18:51 -0000 1.18 +++ namespace.xml 20 Mar 2006 08:46:07 -0000 1.19 @@ -222,7 +222,7 @@ should also be enabled when specifying this property. </documentation> </property> - <property name="hibernateEnableQueryCache"> + <property name="hibernateUseQueryCache"> <default>false</default> <documentation> Enable/disable Hibernate's query cache @@ -231,8 +231,20 @@ should also be enabled when specifying this property. </documentation> </property> + <property name="useDefaultCacheRegion"> + <default>false</default> + <documentation> + Set to true if you do NOT wish to separate the + entity and query cache regions. That way, all + entities and queries use the default cache + region. + Set to false and the cartridge will create a + new cache region for all entities and all + queries marked as cacheable. + </documentation> + </property> <property name="hibernateEntityCache"> - <default>READ_WRITE</default> + <default>TRANSACTIONAL</default> <documentation> Defines the default strategy for Entities caching. Can be overwritten using the corresponding @@ -248,7 +260,7 @@ </documentation> </property> <property name="hibernateAssociationCache"> - <default>READ_WRITE</default> + <default>TRANSACTIONAL</default> <documentation> Defines the default strategy for associations between Entities caching. Can be overwrited with the corresponding |
From: Vance K. <va...@us...> - 2006-03-20 08:44:46
|
User: vancek Date: 06/03/20 00:44:46 Modified: andromda-ejb3/src/main/resources/META-INF/andromda metafacades.xml cartridge.xml Log: renamed hibernateEnableQueryCache to hibernateUseQueryCache property. added useDefaultCacheRegion property. Revision Changes Path 1.20 +2 -1 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.19 retrieving revision 1.20 diff -u -w -r1.19 -r1.20 --- metafacades.xml 16 Mar 2006 02:10:52 -0000 1.19 +++ metafacades.xml 20 Mar 2006 08:44:45 -0000 1.20 @@ -12,7 +12,8 @@ <property reference="entityDefaultCascade"/> <property reference="hibernateEnableCache"/> <property reference="hibernateEntityCache"/> - <property reference="hibernateEnableQueryCache"/> + <property reference="hibernateUseQueryCache"/> + <property reference="useDefaultCacheRegion"/> <property reference="enableClustering"/> <property reference="entityInheritanceStrategy"/> <property reference="entityDiscriminatorType"/> 1.20 +2 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -w -r1.19 -r1.20 --- cartridge.xml 14 Mar 2006 06:16:54 -0000 1.19 +++ cartridge.xml 20 Mar 2006 08:44:45 -0000 1.20 @@ -24,7 +24,8 @@ <property reference="hibernateTreecacheMbeanObject"/> <property reference="hibernateEnableCache"/> <property reference="hibernateEnableAssociationsCache"/> - <property reference="hibernateEnableQueryCache"/> + <property reference="hibernateUseQueryCache"/> + <property reference="useDefaultCacheRegion"/> <property reference="hibernateTransactionManagerLookupClass"/> <property reference="hibernateTransactionFlushBeforeCompletion"/> <property reference="hibernateTransactionAutoCloseSession"/> |
From: Vance K. <va...@us...> - 2006-03-20 08:16:48
|
User: vancek Date: 06/03/20 00:16:47 Modified: andromda-ejb3/src/main/resources/templates/ejb3/config/jboss ejb3-entity-cache-service.xml.vsl Log: define entity and query cache regions is not using default cache region. Revision Changes Path 1.2 +3 -3 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/config/jboss/ejb3-entity-cache-service.xml.vsl Index: ejb3-entity-cache-service.xml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/config/jboss/ejb3-entity-cache-service.xml.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- ejb3-entity-cache-service.xml.vsl 14 Mar 2006 06:13:49 -0000 1.1 +++ ejb3-entity-cache-service.xml.vsl 20 Mar 2006 08:16:46 -0000 1.2 @@ -86,7 +86,7 @@ <attribute name="timeToLiveSeconds">1000</attribute> </region> #foreach ($entity in $entities) -#**##if ($stringUtils.isNotBlank(${entity.cacheType})) +#**##if ($stringUtils.isNotBlank(${entity.cacheType}) && !$entity.useDefaultCacheRegion) <!-- The $entity.entityName entity cache --> <region name="/${entity.fullyQualifiedNamePath}"> @@ -97,10 +97,10 @@ #end #foreach ($entity in $entities) #**##foreach ($finder in $entity.getQueryOperations(true)) -#* *##if ($finder.useQueryCache) +#* *##if ($finder.useQueryCache && !$entity.useDefaultCacheRegion) <!-- The ${entity.name} ${finder.name} query cache --> - <region name="/${entity.fullyQualifiedNamePath}/${finder.name}"> + <region name="/${entity.fullyQualifiedNamePath}_${finder.name}"> <attribute name="maxNodes">1000</attribute> <attribute name="timeToLiveSeconds">5000</attribute> </region> |
From: Vance K. <va...@us...> - 2006-03-20 08:16:22
|
User: vancek Date: 06/03/20 00:15:35 Modified: andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: set the hint org.hibernate.cacheRegion on query if not using default cache region. Revision Changes Path 1.23 +2 -2 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.22 retrieving revision 1.23 diff -u -w -r1.22 -r1.23 --- EntityEmbeddable.vsl 16 Mar 2006 15:26:23 -0000 1.22 +++ EntityEmbeddable.vsl 20 Mar 2006 08:15:34 -0000 1.23 @@ -765,8 +765,8 @@ #* *##end #* *##end #* *##end -#* *##if ($finder.useQueryCache) - query.setHint("org.hibernate.cacheRegion", "/${entity.fullyQualifiedNamePath}/${finder.name}"); +#* *##if ($finder.useQueryCache && !$entity.useDefaultCacheRegion) + query.setHint("org.hibernate.cacheRegion", "/${entity.fullyQualifiedNamePath}_${finder.name}"); #* *##end #* *##if ($stringUtils.equalsIgnoreCase($returnType, "void")) query.executeUpdate(); |
From: Vance K. <va...@us...> - 2006-03-19 09:11:01
|
User: vancek Date: 06/03/19 01:10:55 Modified: andromda-ejb3/src/site/xdoc howto8.xml Log: changed to reflect addition of login-config and login-service auto deployment within app ear. Revision Changes Path 1.3 +59 -26 cartridges/andromda-ejb3/src/site/xdoc/howto8.xml Index: howto8.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto8.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- howto8.xml 23 Feb 2006 08:38:09 -0000 1.2 +++ howto8.xml 19 Mar 2006 09:10:55 -0000 1.3 @@ -19,14 +19,26 @@ <a name="Configuration"/> <subsection name="Configuration"> <p> - Enabling security for the EJB3 cartridge is similar to the EJB cartridge. Just set the - <a href="namespace.html#securityRealm">securityRealm</a> property from your AndroMDA build - configuration. + Enabling security for the EJB3 cartridge is similar to the EJB/hibernate cartridges. All that + is required is to uncomment the <a href="namespace.html#securityRealm">securityRealm</a> + property in your AndroMDA build configuration (andromda.xml). The <code>ejb3</code> + namespace section will look something like the following. +<source language="xml"><![CDATA[ + <namespace name="ejb3"> + <properties> + ... + <!-- uncomment to enable EJB security --> + <property name="securityRealm">${application.id}</property> + ... + </properties> + </namespace> +]]></source> </p> <p> - Once you have done that, the cartridge will create the login-config deploy descriptor - for JBoss. It's contents between the <code>policy</code> elements should be copied to the - JBoss server container 'conf' folder login-config.xml. The file will look like: + Once you have done that, the cartridge will create the <code>login-config</code> and + and <code>login-service</code> deployment descriptors for JBoss. + Both files are generated to the ear <code>META-INF</code> directory. The + <code>login-config.xml</code> will look like: <source language="xml"><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policy PUBLIC @@ -39,30 +51,43 @@ flag="required"> <module-option name="debug">true</module-option> <module-option name="unauthenticatedIdentity">guest</module-option> - <module-option name="dsJndiName">java:/jdbc/howtomodelDS</module-option> + <module-option name="dsJndiName">java:/jdbc/howtomodel</module-option> <module-option name="principalsQuery"> SELECT PASSWORD 'Password' FROM principal WHERE BINARY PRINCIPAL_ID =? </module-option> <module-option name="rolesQuery"> SELECT ROLE 'Roles', ROLE_GROUP 'RoleGroups' FROM role WHERE BINARY PRINCIPAL_ID =? </module-option> + <!-- uncomment to enable MD5 and BASE64 hash encoding <module-option name="hashAlgorithm">MD5</module-option> <module-option name="hashEncoding">BASE64</module-option> + --> </login-module> </authentication> </application-policy> </policy> ]]></source> + The <code>login-service.xml</code> loads the login module from <code>login-config.xml</code>, + making sure the <code>LoginConfigService</code> and <code>SecurityManagerService</code> + services are running before the new login module is activated. </p> <p> - This file will typically be created in <i>your project/app/src/main/config</i> folder. Once - you have copied it's contents over to your JBoss conf login-config.xml, you must restart - JBoss for the new security policy to take effect. + These 2 files are generated the first time the security realm is enabled. They will not be + overridden. For example, you can modify these file to prevent the queries checking for + case sensitivity by removing the <b>BINARY</b> in the <i>where</i> clauses. </p> <p> - This file is generated the first time the security realm is enabled. It will not be - overridden. You can modify this file for example to not have the queries check for - case sensitivity by removing the <b>BINARY</b> in the <i>where</i> clauses. + JBoss will load the MBean service configured in <code>login-service.xml</code> by + specifying this service in the <code>jboss-app.xml</code> deployment descriptor. The EJB3 + cartridge will do this for you, so you don't have to worry about it. It will add the + following: +<source language="xml"><![CDATA[ + ... + <module> + <service>META-INF/howtomodel-login-service.xml</service> + </module> + ... +]]></source> </p> <p> The cartridge will also create an <code>auth.conf</code> file in <i>./app/src/main/config</i>. @@ -80,6 +105,7 @@ <source><![CDATA[ System.setProperty("java.security.auth.login.config", "./auth.conf"); ]]></source> + Alternatively, when running from the command line, specify the -D arg option. </p> <p> Remember that you will need to create your table schema corresponding to the authentication @@ -135,18 +161,25 @@ </p> <p> <ul> - <li class="gen"><a href="src/org/andromda/test/howto8/a/CarEmbeddable.java.txt"><code>CarEmbeddable.java</code></a></li> - <li class="impl"><a href="src/org/andromda/test/howto8/a/Car.java.txt"><code>Car.java</code></a></li> - <li class="gen"><a href="src/org/andromda/test/howto8/a/CarType.java.txt"><code>CarType.java</code></a></li> - <li class="gen"><a href="src/org/andromda/test/howto8/a/PersonEmbeddable.java.txt"><code>PersonEmbeddable.java</code></a></li> - <li class="impl"><a href="src/org/andromda/test/howto8/a/Person.java.txt"><code>Person.java</code></a></li> - <li class="gen"><a href="src/org/andromda/test/ServiceLocator.java.txt"><code>ServiceLocator.java</code></a></li> - <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/a/RentalServiceBean.java.txt"><code>RentalServiceBean.java</code></a></li> - <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/a/RentalServiceRemote.java.txt"><code>RentalServiceRemote.java</code></a></li> - <li class="gen"><a href="src/org/andromda/test/howto8/a/RentalServiceDelegate.java.txt"><code>RentalServiceDelegate.java</code></a></li> - <li class="impl"><a href="src/org/andromda/test/howto8/a/RentalServiceBeanImpl.java.txt"><code>RentalServiceBeanImpl.java</code></a></li> - <li class="gen"><a href="src/org/andromda/test/howto8/a/RentalServiceException.java.txt"><code>RentalServiceException.java</code></a></li> - <li class="gen"><a href="src/org/andromda/test/howto8/a/RentalException.java.txt"><code>RentalException.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/CarEmbeddable.java.txt"><code>CarEmbeddable.java</code></a></li> + <li class="impl"><a href="src/org/andromda/test/howto8/b/Car.java.txt"><code>Car.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/CarType.java.txt"><code>CarType.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/PersonEmbeddable.java.txt"><code>PersonEmbeddable.java</code></a></li> + <li class="impl"><a href="src/org/andromda/test/howto8/b/Person.java.txt"><code>Person.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/ServiceLocator.java.txt"><code>ServiceLocator.java</code></a></li> + <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/b/RentalServiceBean.java.txt"><code>RentalServiceBean.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/RentalServiceRemote.java.txt"><code>RentalServiceRemote.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/RentalServiceDelegate.java.txt"><code>RentalServiceDelegate.java</code></a></li> + <li class="impl"><a href="src/org/andromda/test/howto8/b/RentalServiceBeanImpl.java.txt"><code>RentalServiceBeanImpl.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/RentalServiceException.java.txt"><code>RentalServiceException.java</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/RentalException.java.txt"><code>RentalException.java</code></a></li> + <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/b/ejb-jar.xml.txt"><code>ejb-jar.xml</code></a></li> + <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/b/jboss.xml.txt"><code>jboss.xml</code></a></li> + <li class="gen"><a href="src/org/andromda/test/howto8/b/persistence.xml.txt"><code>persistence.xml</code></a></li> + <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/b/auth.conf.txt"><code>auth.conf</code></a></li> + <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/b/jboss-app.xml.txt"><code>jboss-app.xml</code></a></li> + <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/b/howtomodel-login-config.xml.txt"><code>howtomodel-login-config.xml</code></a></li> + <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/b/howtomodel-login-service.xml.txt"><code>howtomodel-login-service.xml</code></a></li> </ul> </p> <p> |
From: <sar...@us...> - 2006-03-18 02:56:02
|
User: sarbogast Date: 06/03/17 18:55:57 Added: embedder/docs AndroMDA_Embedder_Design_Document.doc Log: Initial import Revision Changes Path 1.1 components/embedder/docs/AndroMDA_Embedder_Design_Document.doc <<Binary file>> |
From: <sar...@us...> - 2006-03-18 02:48:27
|
User: sarbogast Date: 06/03/17 18:48:22 components/embedder/docs - New directory |
From: Vance K. <va...@us...> - 2006-03-17 14:41:47
|
User: vancek Date: 06/03/17 06:41:32 Modified: andromda-ejb3/src/site site.xml Log: added caching and clustering reference. Revision Changes Path 1.8 +1 -0 cartridges/andromda-ejb3/src/site/site.xml Index: site.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/site.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- site.xml 7 Mar 2006 01:52:53 -0000 1.7 +++ site.xml 17 Mar 2006 14:41:32 -0000 1.8 @@ -33,6 +33,7 @@ <item name="Lifecycle Callback" href="howto14.html"/> <item name="Transactions" href="howto15.html"/> <item name="Manageable Entities" href="howto16.html"/> + <item name="Caching and Clustering" href="howto17.html"/> <item name="Tips & Tricks" href="tips.html"/> </menu> </body> |
From: Vance K. <va...@us...> - 2006-03-17 14:39:42
|
User: vancek Date: 06/03/17 06:39:38 Modified: andromda-ejb3/src/site/xdoc howto1.xml andromda-ejb3/src/site/resources/images/org/andromda/test/1/g uml.gif Log: fixed lob support docs Revision Changes Path 1.5 +15 -7 cartridges/andromda-ejb3/src/site/xdoc/howto1.xml Index: howto1.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto1.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- howto1.xml 24 Feb 2006 06:06:56 -0000 1.4 +++ howto1.xml 17 Mar 2006 14:39:37 -0000 1.5 @@ -326,18 +326,23 @@ <code>parameterRequiredCheck</code> namespace property to have the <code>false</code> value. </p> </subsection> - <a name="LOB_CLOB_Attribute"/> - <subsection name="LOB/CLOB Attributes"> + <a name="LOB_Attribute"/> + <subsection name="LOB BLOB/CLOB Attributes"> <p> - An attribute can be specified as either a BLOB or CLOB field. This is modelled by assigning - the <code>@andromda.persistence.lob.type</code> tag to the required type. This will add - the <code>@javax.persistence.Lob</code> annotation to the entity attribute. + An attribute can be specified as either a BLOB or CLOB field. This is modelled by setting + the attribute type to <code>datatype::Clob</code> or <code>datatype::Blob</code>. This will add + the <code>@javax.persistence.Lob</code> annotation to the entity attribute. The EJB3 + cartridge will assign a default Java type based on the Java mappings specified in AndroMDA. + For a Blob, the default is <code>byte[]</code>. For a Clob, the default is <code>String</code>. + To override the default types, you can model the <code>@andromda.persistence.lob.type</code> + tagged value to the fully qualified name of the required type. </p> <p> For BLOB fields, the attribute type must be modelled as one of: <ul> <li>Byte[]</li> <li>Serializable type</li> + <li>java.sql.Blob</li> </ul> </p> <p> @@ -346,6 +351,7 @@ <li>char[]</li> <li>Character[]</li> <li>String</li> + <li>java.sql.Clob</li> </ul> </p> <p> @@ -370,8 +376,10 @@ </ul> </p> <p> - This example models the type attribute as a CLOB, since it's of type String and - sets the fetch type for the attribute to eagerly fetch. + This example models the attribute named <code>type</code> as a CLOB where the corresponding + column in the table will be of type String and the cartridge will set the fetch type for the + attribute to <b>eagerly</b> fetch. The attribute <code>information</code> is defined as a LOB, + but it's of type <code>char[]</code>. </p> </subsection> <a name="Column_Specifics"/> 1.2 +58 -52 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/1/g/uml.gif <<Binary file>> |
From: Vance K. <va...@us...> - 2006-03-17 14:20:39
|
User: vancek Date: 06/03/17 06:20:22 Modified: andromda-ejb3/src/site/xdoc howto2.xml Log: added transient docs and fixed tips subsection. Revision Changes Path 1.4 +15 -4 cartridges/andromda-ejb3/src/site/xdoc/howto2.xml Index: howto2.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto2.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- howto2.xml 8 Feb 2006 10:19:38 -0000 1.3 +++ howto2.xml 17 Mar 2006 14:20:22 -0000 1.4 @@ -274,10 +274,21 @@ </ul> </p> </subsection> - <p class="highlight"> - Don't forget to properly set the multiplicity on the association ends and whether and end + <a name="Transient_Relationships"/> + <subsection name="Transient Relationships"> + <p> + To indicate an association relationship target as transient (not persisted by the persistence + container), you model the <![CDATA[<<Transient>>]]> stereotype on the target end. This adds the + <code>@javax.persistence.Transient</code> annotation to the relationship getter. + </p> + </subsection> + <a name="Tips"/> + <subsection name="Tips"> + <p> + Don't forget to properly set the multiplicity on the association ends and whether an end is navigable. This will ensure the proper code is generated. </p> + </subsection> </section> <section name="Next"> <p> |
From: Vance K. <va...@us...> - 2006-03-17 09:45:14
|
User: vancek Date: 06/03/17 01:32:50 Added: andromda-ejb3/src/site/resources/images/org/andromda/test/13/a uml.gif Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/13/a/uml.gif <<Binary file>> |
From: Vance K. <va...@us...> - 2006-03-17 09:45:14
|
User: vancek Date: 06/03/17 01:32:41 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/13/a - New directory |
From: Vance K. <va...@us...> - 2006-03-17 09:45:14
|
User: vancek Date: 06/03/17 01:32:41 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/13 - New directory |