I'm upgrading a 2.3 app to 2.4.4 and I have several domains that use List fields similar to the following and I'm receiving an error as described here.
class Game {
List score
static hasMany = [ score: Integer ]
}
I'm assuming use of the above is the actual cause of the problem but I can't be sure because the error message doesn't point to a domain.
Is this type of list definition not good grails practice?
I get the error:
2014-10-31 16:26:32 ERROR [context.GrailsContextLoaderListener] Error initializing the pplication: Error creating bean with name 'transactionManagerPostProcessor':
....
Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: java.util.List
UPDATE
I found the domain and the problem associated with the error. Here's the problem domain and associated List. If I remove the List, the problem is corrected.
class Team {
List teamTourney
static hasMany = [ teamTourney: TeamTourney ]
}