gorm - Grails non-existent mapping property -
having problems domain class mappings. domains follows:
user domain
class user extends secuser { static hasmany = [ratings:rating, searchedresults:results, recommendedresults:results] static mappedby = [searchedresults:"searched", recommendedresults:"recommended"] }
rating domain
class rating { static belongsto = user artist artist double rating }
results domain
class results { static belongsto = user def searched def recommended }
when compiling gives following error:
non-existent mapping property [recommended] specified property [recommendedresults] in class [class ontourtest.user].
any ideas why happening? much!
try changing def searched
, def recommended
in results
class actual types (example thing searched
, thing recommended
). i'm not sure type they're supposed , think grails doesn't know either.
see documentation
note: there type-o in documentation ;)
Comments
Post a Comment