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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -