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

Norman Richards norman.richards at jboss.com
Fri Mar 16 20:35:32 EDT 2007


  User: nrichards
  Date: 07/03/16 20:35:32

  Modified:    examples/dvdstore/resources/WEB-INF  components.xml
  Log:
  remove a few redundant classes
  
  Revision  Changes    Path
  1.7       +24 -0     jboss-seam/examples/dvdstore/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/dvdstore/resources/WEB-INF/components.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- components.xml	27 Feb 2007 07:16:45 -0000	1.6
  +++ components.xml	17 Mar 2007 00:35:32 -0000	1.7
  @@ -2,10 +2,12 @@
   <components xmlns="http://jboss.com/products/seam/components"
               xmlns:core="http://jboss.com/products/seam/core"
               xmlns:security="http://jboss.com/products/seam/security"
  +            xmlns:framework="http://jboss.com/products/seam/framework"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation=
                   "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd 
                    http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
  +                 http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd
                    http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd">
   
       <core:init debug="true" jndi-pattern="@jndiPattern@"/>
  @@ -27,4 +29,26 @@
       
       <security:identity authenticate-method="#{authenticator.authenticate}"/>
       
  +    <framework:entity-query name="allCategories"
  +                            ejbql="select c from Category c"
  +                            order="c.name">
  +        <!--  waiting for hibernate issue EJB-277
  +        <framework:hints>
  +            <key>org.hibernate.cacheable</key>
  +            <value>true</value>
  +        </framework:hints>
  +         -->
  +    </framework:entity-query>    
  +    
  +    
  +    <factory name="topProducts" value="#{topQuery.resultList}" />
  +    <framework:entity-query name="topQuery"
  +                            ejbql="select p from Product p"
  +                            order="p.inventory.sales DESC" 
  +                            max-results="8" />    
  +    
  +    <core:managed-persistence-context name="entityManager"
  +                                      auto-create="true"
  +                                      persistence-unit-jndi-name="java:/dvdEntityManagerFactory" />
  +                                      
   </components>
  
  
  



More information about the jboss-cvs-commits mailing list