Search code examples
grailsgrails-domain-class

Grails create table List<String> name


Why i can't create table List to my database?

my domain class :

class Test {
   List<String> names
}

Solution

  • This is the supported syntax:

    class Test {
       static hasMany = [names: String]
    }