[jboss-cvs] jboss-seam/examples/registration/resources/WEB-INF ...

Gavin King gavin.king at jboss.com
Wed Sep 27 13:49:09 EDT 2006


  User: gavin   
  Date: 06/09/27 13:49:09

  Modified:    examples/registration/resources/WEB-INF  components.xml
  Log:
  use ManagedObject
  
  Revision  Changes    Path
  1.3       +16 -16    jboss-seam/examples/registration/resources/WEB-INF/components.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: components.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/registration/resources/WEB-INF/components.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- components.xml	27 Sep 2006 04:09:02 -0000	1.2
  +++ components.xml	27 Sep 2006 17:49:09 -0000	1.3
  @@ -1,16 +1,5 @@
   <components>
   
  -    <component name="contacts" 
  -              class="org.jboss.seam.framework.Query">
  -        <property name="ejbql">from Contact</property>
  -        <property name="restrictions">
  -            <value>lower(firstName) like lower( #{exampleContact.firstName} + '%' )</value>
  -            <value>lower(lastName) like lower( #{exampleContact.lastName} + '%' )</value>
  -        </property>
  -        <property name="maxResults">20</property>
  -        <property name="entityManager">#{entityManager}</property>
  -    </component>
  -    
       <component name="contact"
                 class="org.jboss.seam.framework.ManagedEntity">
           <property name="id">#{param.contactId}</property>
  @@ -19,17 +8,28 @@
           <property name="entityManager">#{entityManager}</property>
       </component>
   
  -    <component name="exampleContact"
  -              class="org.jboss.seam.framework.ManagedEntity">
  -        <property name="entityClass">org.jboss.seam.example.crud.Contact</property>
  -    </component>
  -    
       <component name="contactActions"
                 class="org.jboss.seam.framework.EntityActions">
           <property name="entityManager">#{entityManager}</property>
           <property name="entity">#{contact}</property>
       </component>
   
  +    <component name="exampleContact"
  +              class="org.jboss.seam.framework.ManagedObject">
  +        <property name="objectClass">org.jboss.seam.example.crud.Contact</property>
  +    </component>
  +    
  +    <component name="contacts" 
  +              class="org.jboss.seam.framework.Query">
  +        <property name="ejbql">from Contact</property>
  +        <property name="restrictions">
  +            <value>lower(firstName) like lower( #{exampleContact.firstName} + '%' )</value>
  +            <value>lower(lastName) like lower( #{exampleContact.lastName} + '%' )</value>
  +        </property>
  +        <property name="maxResults">20</property>
  +        <property name="entityManager">#{entityManager}</property>
  +    </component>
  +    
       <component name="entityManager" 
                 class="org.jboss.seam.core.ManagedPersistenceContext">
           <property name="persistenceUnitJndiName">java:/crudEntityManagerFactory</property>
  
  
  



More information about the jboss-cvs-commits mailing list