I'm trying to add a reference from the default Spring
Security user domain class to another class which should hold additional
user info.
...and...
From what I read this should be the way it works, but I get the following error :
Any idea?=======================================================================
We need to see your
BootStrap to be sure, but I suspect it's because you're doing something like
and your new User is failing validation (which causes save to return null ).If you use save(failOnError:true) you should get a different exception with a better indication of what the real problem is. Check that you have the right constraints in your User class, in particular note that GORM properties are by default non-nullable so if you want to be able to save a User that doesn't have a Profile you will need to add a constraint of profile(nullable:true) . |
Monday, October 29, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment