Skip to content

Commit 3a52670

Browse files
committed
Merge branch '2.3.x' of github.com:grails/grails-core into 2.3.x
2 parents 86b1787 + c95a31a commit 3a52670

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

gradle/assemble.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ task pluginsFromRepo {
103103
hibernate: "3.6.10.8",
104104
jquery: "1.11.0",
105105
resources: "1.2.1",
106-
scaffolding: "2.0.1",
106+
scaffolding: "2.0.2",
107107
tomcat: "7.0.50",
108108
webxml: "1.4.1"
109109
]

grails-resources/src/grails/grails-app/conf/BuildConfig.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ grails.project.dependency.resolution = {
5757
build ":tomcat:7.0.50"
5858

5959
// plugins for the compile step
60-
compile ":scaffolding:2.0.1"
60+
compile ":scaffolding:2.0.2"
6161
compile ':cache:1.1.1'
6262

6363
// plugins needed at runtime but not for compilation

grails-test-suite-persistence/src/test/groovy/org/codehaus/groovy/grails/orm/GrailsWebDataBinderSpec.groovy

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,25 @@ class GrailsWebDataBinderSpec extends Specification {
11691169
then:
11701170
obj.timeZone == TimeZone.getTimeZone('Europe/Berlin')
11711171
}
1172+
1173+
void 'Test binding to a typed List of non-domain objects'() {
1174+
given:
1175+
def obj = new DocumentHolder()
1176+
1177+
when:
1178+
binder.bind obj, [objectIds: ['two', 'four', 'six', 'eight']] as SimpleMapDataBindingSource
1179+
1180+
then:
1181+
obj.objectIds.size() == 4
1182+
obj.objectIds[0] instanceof ObjectId
1183+
obj.objectIds[0].value == 'two'
1184+
obj.objectIds[1] instanceof ObjectId
1185+
obj.objectIds[1].value == 'four'
1186+
obj.objectIds[2] instanceof ObjectId
1187+
obj.objectIds[2].value == 'six'
1188+
obj.objectIds[3] instanceof ObjectId
1189+
obj.objectIds[3].value == 'eight'
1190+
}
11721191
}
11731192

11741193
@Entity
@@ -1295,6 +1314,18 @@ class CollectionContainer {
12951314
List<Long> listOfLong
12961315
}
12971316

1317+
class DocumentHolder {
1318+
List<ObjectId> objectIds
1319+
}
1320+
1321+
class ObjectId {
1322+
String value
1323+
1324+
ObjectId(String str) {
1325+
value = str
1326+
}
1327+
}
1328+
12981329
class PrimitiveContainer {
12991330
boolean someBoolean
13001331
byte someByte

0 commit comments

Comments
 (0)