[jboss-cvs] jboss-seam/seam-gen/src ...

Peter Muir peter at bleepbleep.org.uk
Wed Nov 21 09:24:02 EST 2007


  User: pmuir   
  Date: 07/11/21 09:24:02

  Modified:    seam-gen/src  EntityList.java.ftl
  Log:
  JBSEAM-2282
  
  Revision  Changes    Path
  1.7       +3 -2      jboss-seam/seam-gen/src/EntityList.java.ftl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EntityList.java.ftl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/EntityList.java.ftl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- EntityList.java.ftl	2 Oct 2007 18:29:58 -0000	1.6
  +++ EntityList.java.ftl	21 Nov 2007 14:24:02 -0000	1.7
  @@ -1,3 +1,4 @@
  +<#include "../util/TypeInfo.ftl">
   <#assign entityName = pojo.shortName>
   <#assign componentName = util.lower(entityName)>
   <#assign listName = componentName + "List">
  @@ -20,12 +21,12 @@
   <#if !c2h.isCollection(property) && !c2h.isManyToOne(property)>
   <#if c2j.isComponent(property)>
   <#foreach componentProperty in property.value.propertyIterator>
  -<#if componentProperty.value.typeName == "string">
  +<#if isString(componentProperty)>
           "lower(${componentName}.${property.name}.${componentProperty.name}) like concat(lower(${'#'}{${listName}.${componentName}.${property.name}.${componentProperty.name}}),'%')",
   </#if>
   </#foreach>
   <#else>
  -<#if property.value.typeName == "string">
  +<#if isString(property)>
           "lower(${componentName}.${property.name}) like concat(lower(${'#'}{${listName}.${componentName}.${property.name}}),'%')",
   </#if>
   </#if>
  
  
  



More information about the jboss-cvs-commits mailing list