Skip to content

Commit

Permalink
Merge pull request #519 from caelum/addingTemporaryDialect
Browse files Browse the repository at this point in the history
adding temporary dialect.
  • Loading branch information
Turini committed Apr 23, 2014
2 parents c0ad00a + ffeca49 commit 758695d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package br.com.caelum.vraptor.dialect;

import org.hibernate.dialect.HSQLDialect;

public class TemporaryHSQLDBDialect extends HSQLDialect {

@Override
public boolean supportsSequences() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
version="2.0">

<persistence-unit name="default">

<class>br.com.caelum.vraptor.musicjungle.model.Music</class>
<class>br.com.caelum.vraptor.musicjungle.model.User</class>
<class>br.com.caelum.vraptor.musicjungle.model.MusicOwner</class>

<properties>
<property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" />
<property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:musicjungleDB" />
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="javax.persistence.jdbc.password" value="" />

<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.dialect" value="br.com.caelum.vraptor.dialect.TemporaryHSQLDBDialect"/>
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="false" />
<property name="hibernate.hbm2ddl.auto" value="update" />
Expand Down
1 change: 0 additions & 1 deletion vraptor-musicjungle/src/main/webapp/index.html

This file was deleted.

0 comments on commit 758695d

Please sign in to comment.