Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c8de45d

Browse files
committed
fix failing tests by addressing h2 reserved words
1 parent a9fa746 commit c8de45d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/events/UpdatePropertyInEventListenerSpec.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ class UpdatePropertyInEventListenerSpec extends Specification {
6969
class User {
7070
String username
7171
String password
72+
73+
static mapping = {
74+
table '`user`'
75+
password column: '`password`'
76+
}
7277
}
7378

7479
class PasswordEncodingListener extends AbstractPersistenceEventListener {

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/validation/UniqueFalseConstraintSpec.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ class User {
3737
static constraints = {
3838
name unique: false
3939
}
40+
41+
static mapping = {
42+
table '`user`'
43+
}
4044
}

0 commit comments

Comments
 (0)