Why i can't create table List to my database?
my domain class :
class Test {
List<String> names
}
Why i can't create table List to my database?
my domain class :
class Test {
List<String> names
}
This is the supported syntax:
class Test {
static hasMany = [names: String]
}
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
.