GrailsでドメインクラスにMapのプロパティを定義するとどうのようなスキーマになるか
class MapHolder {
Map mapValues
}
schema-exportすると以下になりました。
create table map_holder ( id bigint generated by default as identity, version bigint not null, primary key (id) ); create table map_holder_map_values ( map_values bigint, map_values_idx varchar(255), map_values_elt varchar(255) not null );
デフォルトだとMapの型がString,Stringの値を管理できる模様。