Skip to content

Commit

Permalink
Validateable trait has moved
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Scott Brown committed Jan 25, 2015
1 parent 83d8ae1 commit b99cec1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/en/guide/testing/unitTesting/unitTestingDomains.gdoc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ These are all easily testable in a unit test with no special configuration neces
// src/groovy/com/demo/MyValidateable.groovy
package com.demo

class MyValidateable implements grails.validation.trait.Validateable {
class MyValidateable implements grails.validation.Validateable {
String name
Integer age

Expand Down
6 changes: 3 additions & 3 deletions src/en/guide/theWebLayer/controllers/commandObjects.gdoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ h4. Declaring Command Objects
Command object classes are defined just like any other class.

{code:java}
class LoginCommand implements grails.validation.trait.Validateable {
class LoginCommand implements grails.validation.Validateable {
String username
String password

Expand All @@ -25,7 +25,7 @@ In this example, the command object class implements the @Validateable@ trait. T
By default, all @Validateable@ object properties are @nullable: false@ which matches the behavior of GORM domain objects. If you want a @Validateable@ that has @nullable: true@ properties by default, you can specify this by defining a @defaultNullable@ method in the class:

{code:java}
class AuthorSearchCommand implements grails.validation.trait.Validateable {
class AuthorSearchCommand implements grails.validation.Validateable {
String name
Integer age

Expand Down Expand Up @@ -133,7 +133,7 @@ h4. Command Objects and Dependency Injection
Command objects can participate in dependency injection. This is useful if your command object has some custom validation logic which uses a Grails [service|guide:services]:

{code}
class LoginCommand implements grails.validation.trait.Validateable {
class LoginCommand implements grails.validation.Validateable {

def loginService

Expand Down

0 comments on commit b99cec1

Please sign in to comment.