Permalink
Browse files

adding hibernate and beanvalidator

  • Loading branch information...
1 parent 16e7732 commit 6fe5fd1d0bd8e1f4637cee0b410f8b48e3e1f2fd Clément Uster committed Sep 21, 2010
Showing with 34 additions and 0 deletions.
  1. +1 −0 README.md
  2. +18 −0 pom.xml
  3. +15 −0 src/main/resources/hibernate.cfg.xml
View
@@ -1,2 +1,3 @@
# Tapestry 5 demonstration application - Hotel Booking
+More information: http://spreadthesource.com/2010/09/wooki-0-4-is-out-whats-next/
View
18 pom.xml
@@ -28,6 +28,24 @@ of testing facilities designed for use with TestNG (http://testng.org/), so it's
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-hibernate</artifactId>
+ <version>${tapestry-release-version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>1.8.0.7</version>
+ </dependency>
+
+ <dependency>
@ccordenier

ccordenier Sep 22, 2010

Owner

Seems like we are missing some configuration for this bean validator module, application does not start anymore

+ <groupId>org.apache.tapestry</groupId>
+ <artifactId>tapestry-beanvalidator</artifactId>
+ <version>${tapestry-release-version}</version>
+ </dependency>
+
<!-- tapestry-test will conflict with RunJettyRun inside Eclipse. tapestry-test brings in Selenium, which
is based on Jetty 5.1; RunJettyRun uses Jetty 6.
<dependency>
@@ -0,0 +1,15 @@
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">jdbc:hsqldb:./db/work/database;shutdown=true</property>
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ <property name="hibernate.connection.username">hostel</property>
+ <property name="hibernate.connection.password">pa55w0rD</property>
+ <property name="hbm2ddl.auto">update</property>
+ <property name="hibernate.show_sql">true</property>
+ <property name="hibernate.format_sql">true</property>
+ </session-factory>
+</hibernate-configuration>

0 comments on commit 6fe5fd1

Please sign in to comment.