Skip to content

Commit 4326c8a

Browse files
committed
git diff grails-app/domain/com/grainapp/content/Content.groovy
1 parent b0ebed2 commit 4326c8a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

grails-app/conf/DataSource.groovy

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ hibernate {
2828
environments {
2929
development {
3030
dataSource {
31+
//url = "jdbc:hsqldb:file:devDB"
3132
dbCreate = "update" // one of 'create', 'create-drop','update'
32-
url = "jdbc:hsqldb:file:devDB"
33+
url = "jdbc:mysql://localhost:3306/grain_dev"
34+
driverClassName = "com.mysql.jdbc.Driver"
35+
dialect = org.hibernate.dialect.MySQLInnoDBDialect
36+
username = "root"
37+
password = ""
3338
}
3439
}
3540
test {

grails-app/domain/com/grainapp/content/Content.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ class Content implements Serializable {
2626

2727
static mapping = {
2828
body type:"text"
29+
tablePerHierarchy false
2930
}
30-
31+
3132
static constraints = {
3233
title(blank:false,nullable:false,size:1..200)
3334
body(blank:false,nullable:false,size:1..20000)

lib/mysql-connector-java-5.0.5.jar

501 KB
Binary file not shown.

0 commit comments

Comments
 (0)