Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not works with interfaces #1

Open
rmorrise opened this issue Jan 14, 2019 · 1 comment
Open

Not works with interfaces #1

rmorrise opened this issue Jan 14, 2019 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@rmorrise
Copy link
Collaborator

rmorrise commented Jan 14, 2019

class DomainA {
       IEmbeddedDomain embedded

       static mapper = {
            embedded type: CustomJsonType
       }

       static  constraints = {
            embedded cascade: true // <--- Not works
       }
}
@Validateable
class DomainB implements IEmbeddedDomain {
        String someData 

        static  constraints = {
             someData nullable: false
        }
}
def a = new DomainA(
    embedded: new DomainB()
)
a.validate() // returns true 

(issue reported 10/07/2015 by @gtors)

@rmorrise rmorrise added help wanted Extra attention is needed bug Something isn't working labels Jan 14, 2019
@virtualdogbert
Copy link
Collaborator

While this may not be the cause of the problem @Validateable isn't valid in Grails 3, as we have the Validateable trait...

sbglasius added a commit that referenced this issue Dec 3, 2021
Grails 3.3 from virtualdogbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants