1

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

my domain class :

class Test {
   List<String> names
}
4

2 回答 2

6

This is the supported syntax:

class Test {
   static hasMany = [names: String]
}
于 2013-03-02T04:26:43.077 回答
0

I am using the way exposed in the question and it's working.

class Test {
   List<String> names
}

This generates a table called: test_names with columns test_names_id, names_ids, names_ids_idx.

于 2020-07-22T12:35:11.847 回答