[jboss-cvs] jboss-seam/examples/jpa/resources/glassfish ...

Michael Yuan michael.yuan at jboss.com
Fri Dec 1 18:56:16 EST 2006


  User: myuan   
  Date: 06/12/01 18:56:16

  Modified:    examples/jpa/resources/glassfish     log4j.xml
                        persistence.xml
  Added:       examples/jpa/resources/glassfish    
                        GlassfishDerbyDialect.class import.sql
  Log:
  Make both WL and GF work ...
  
  Revision  Changes    Path
  1.2       +1 -2      jboss-seam/examples/jpa/resources/glassfish/log4j.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: log4j.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/resources/glassfish/log4j.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- log4j.xml	30 Nov 2006 06:39:36 -0000	1.1
  +++ log4j.xml	1 Dec 2006 23:56:16 -0000	1.2
  @@ -7,7 +7,7 @@
   <!--                                                                       -->
   <!-- ===================================================================== -->
   
  -<!-- $Id: log4j.xml,v 1.1 2006/11/30 06:39:36 myuan Exp $ -->
  +<!-- $Id: log4j.xml,v 1.2 2006/12/01 23:56:16 myuan Exp $ -->
   
   <!--
      | For more configuration infromation and examples see the Jakarta Log4j
  @@ -17,7 +17,6 @@
   <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
      
      <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
  -      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
         <param name="Target" value="System.out"/>
   
         <layout class="org.apache.log4j.PatternLayout">
  
  
  
  1.2       +3 -2      jboss-seam/examples/jpa/resources/glassfish/persistence.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: persistence.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/resources/glassfish/persistence.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- persistence.xml	30 Nov 2006 06:39:36 -0000	1.1
  +++ persistence.xml	1 Dec 2006 23:56:16 -0000	1.2
  @@ -1,11 +1,12 @@
   <?xml version="1.0" encoding="UTF-8"?>
  -<persistence>
  +<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"
  +        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <persistence-unit name="bookingDatabase" transaction-type="JTA">
         <provider>org.hibernate.ejb.HibernatePersistence</provider>
         <jta-data-source>jdbc/__default</jta-data-source>
         <properties>
             <property name="hibernate.dialect" 
  -                    value="org.hibernate.dialect.DerbyDialect"/>
  +                    value="GlassfishDerbyDialect"/>
            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
            <property name="hibernate.show_sql" value="true"/>
            <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
  
  
  
  1.1      date: 2006/12/01 23:56:16;  author: myuan;  state: Exp;jboss-seam/examples/jpa/resources/glassfish/GlassfishDerbyDialect.class
  
  	<<Binary file>>
  
  
  1.1      date: 2006/12/01 23:56:16;  author: myuan;  state: Exp;jboss-seam/examples/jpa/resources/glassfish/import.sql
  
  Index: import.sql
  ===================================================================
  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 (name, address, city, state, zip, country) values ('Marriott Courtyard', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Doubletree', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('W Hotel', 'Union Square, Manhattan', 'NY', 'NY', '10011', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('W Hotel', 'Lexington Ave, Manhattan', 'NY', 'NY', '10011', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Hotel Rouge', '1315 16th Street NW', 'Washington', 'DC', '20036', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('70 Park Avenue Hotel', '70 Park Avenue', 'NY', 'NY', '10011', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Conrad Miami', '1395 Brickell Ave', 'Miami', 'FL', '33131', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Sea Horse Inn', '2106 N Clairemont Ave', 'Eau Claire', 'WI', '54703', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Super 8 Eau Claire Campus Area', '1151 W Macarthur Ave', 'Eau Claire', 'WI', '54701', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Marriot Downtown', '55 Fourth Street', 'San Francisco', 'CA', '94103', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Hilton Diagonal Mar', 'Passeig del Taulat 262-264', 'Barcelona', 'Catalunya', '08019', 'Spain')
  insert into Hotel (name, address, city, state, zip, country) values ('Hilton Tel Aviv', 'Independence Park', 'Tel Aviv', '', '63405', 'Israel')
  insert into Hotel (name, address, city, state, zip, country) values ('InterContinental Tokyo Bay', 'Takeshiba Pier', 'Tokyo', '', '105', 'Japan')
  insert into Hotel (name, address, city, state, zip, country) values ('Hotel Beaulac', ' Esplanade Léopold-Robert 2', 'Neuchatel', '', '2000', 'Switzerland')
  insert into Hotel (name, address, city, state, zip, country) values ('Conrad Treasury Place', 'William & George Streets', 'Brisbane', 'QLD', '4001', 'Australia')
  insert into Hotel (name, address, city, state, zip, country) values ('Ritz Carlton', '1228 Sherbrooke St', 'West Montreal', 'Quebec', 'H3G1H6', 'Canada')
  insert into Hotel (name, address, city, state, zip, country) values ('Ritz Carlton', 'Peachtree Rd, Buckhead', 'Atlanta', 'GA', '30326', 'USA')
  insert into Hotel (name, address, city, state, zip, country) values ('Swissotel', '68 Market Street', 'Sydney', 'NSW', '2000', 'Australia')
  insert into Hotel (name, address, city, state, zip, country) values ('Meliá White House', 'Albany Street', 'Regents Park London', '', 'NW13UP', 'Great Britain')
  insert into Hotel (name, address, city, state, zip, country) values ('Hotel Allegro', '171 West Randolph Street', 'Chicago', 'IL', '60601', 'USA')
  
  
  



More information about the jboss-cvs-commits mailing list