[jboss-cvs] jboss-seam/examples/spring/resources ...

Norman Richards norman.richards at jboss.com
Mon Feb 19 16:53:22 EST 2007


  User: nrichards
  Date: 07/02/19 16:53:22

  Modified:    examples/spring/resources      import.sql
  Added:       examples/spring/resources      applicationContext.xml
                        hibernate.cfg.xml
  Removed:     examples/spring/resources      components.properties
                        spring-beans.xml
  Log:
  booking
  
  Revision  Changes    Path
  1.3       +2 -2      jboss-seam/examples/spring/resources/import.sql
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: import.sql
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/spring/resources/import.sql,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- import.sql	18 Feb 2007 19:57:58 -0000	1.2
  +++ import.sql	19 Feb 2007 21:53:22 -0000	1.3
  @@ -1,5 +1,5 @@
  -insert into User (username, password, name) values ('gavin', 'foobar', 'Gavin King')
  -insert into User (username, password, name) values ('demo', 'demo', 'Demo User')
  +insert into Customer (username, password, name) values ('gavin', 'foobar', 'Gavin King')
  +insert into Customer (username, password, name) values ('demo', 'demo', 'Demo User')
   insert into Hotel (id, price, name, address, city, state, zip, country) values (1, 120, 'Marriott Courtyard', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
   insert into Hotel (id, price, name, address, city, state, zip, country) values (2, 180, 'Doubletree', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
   insert into Hotel (id, price, name, address, city, state, zip, country) values (3, 450, 'W Hotel', 'Union Square, Manhattan', 'NY', 'NY', '10011', 'USA')
  
  
  
  1.1      date: 2007/02/19 21:53:22;  author: nrichards;  state: Exp;jboss-seam/examples/spring/resources/applicationContext.xml
  
  Index: applicationContext.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <beans xmlns="http://www.springframework.org/schema/beans" 
         xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:util="http://www.springframework.org/schema/util" 
         xmlns:seam="http://jboss.com/products/seam/spring"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xmlns:tx="http://www.springframework.org/schema/tx"
         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                             http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
                             http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
                             http://jboss.com/products/seam/spring classpath:org/jboss/seam/ioc/spring/spring.xsd
  
                             http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"
         default-lazy-init="true">
      <!-- XX fix schemaloc -->
  <!--
      <bean id="userService" class="org.jboss.seam.example.spring.UserService">
          <property name="session" ref="managedSession"/>
      </bean>
  
      <bean id="bookingService" class="org.jboss.seam.example.spring.BookingService">
          <property name="session" ref="managedSession"/>
      </bean>
  -->
      <seam:instance id="managedSession" name="bookingDatabase" proxy="true"/>
  
  
  </beans>
  
  
  
  1.1      date: 2007/02/19 21:53:22;  author: nrichards;  state: Exp;jboss-seam/examples/spring/resources/hibernate.cfg.xml
  
  Index: hibernate.cfg.xml
  ===================================================================
  <!DOCTYPE hibernate-configuration PUBLIC
  	"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  	"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  
  <hibernate-configuration>
      <session-factory name="java:/bookingDatabase">
          <property name="show_sql">false</property>
          <property name="connection.datasource">java:/DefaultDS</property>
          <property name="hbm2ddl.auto">create-drop</property>
          <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
          <property name="transaction.flush_before_completion">true</property>
          <property name="connection.release_mode">after_statement</property>
          <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
          <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
          <mapping class="org.jboss.seam.example.spring.Hotel"/>
          <mapping class="org.jboss.seam.example.spring.User"/>
          <mapping class="org.jboss.seam.example.spring.Booking"/>
      </session-factory>
  </hibernate-configuration>
  
  
  



More information about the jboss-cvs-commits mailing list