[ http://jira.andromda.org/browse/SPRING-143?page=history ]

Diego Bendlin updated SPRING-143:
---------------------------------

    Attachment: cartridge.xml
                namespace.xml

This two files define one new outlet named "search-criteria" this together with 
a property in the spring cartridge can help moving the generated criteria 
classes to the new outlet.

The property in andromda.xml file should be placed in the spring namespace like 
this:
<property 
name="search-criteria">${maven.andromda.common.generated.dir}</property>

This will generate the CriteriaSearch classes in the common subproject.

> CriteriaSeach classes been generated to the core subproject
> -----------------------------------------------------------
>
>          Key: SPRING-143
>          URL: http://jira.andromda.org/browse/SPRING-143
>      Project: Spring Cartridge
>         Type: Bug
>     Versions: 3.2-RC1
>  Environment: Windows XP Pro, Java-1.5.0_6, maven-1.0.2, MagicDraw-9.5
>     Reporter: Diego Bendlin
>     Assignee: Chad Brandon
>  Attachments: cartridge.xml, namespace.xml
>
> The problem with the CriteriaSearchClasses seems to be related to the fact 
> that Criteria classes are been generated to the core subproject instead of 
> the common subproject. 
> After navigating the spring-cartridge jar I found the following on the 
> cartridge.xml 
> Code: 
>     <template 
>         path="templates/spring/hibernate/SearchCriteria.vsl" 
>         outputPattern="{0}/{1}.java" 
>         outlet="daos" 
>         overwrite="true"> 
>         <modelElements variable="class"> 
>             <modelElement stereotype="CRITERIA"/> 
>         </modelElements> 
>     </template> 
>  
> Normally the daos outlet on andromda.xml is configured the following way 
> Code: 
>                 <property 
> name="daos">${maven.andromda.core.generated.dir}</property> 
>  
> Criteria classes should have their own outlet, something like 
> "search-criteria" or similar and that property should than be pointed by 
> default to the ${maven.andromda.common.generated.dir}




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

Reply via email to