TypeがCLASSのコンバーター
TypeがCLASSの場合がデフォルトなので、Typeは省略できる。
Annotation自体はModelDrivenの場合はModelの当該プロパティに書いた。
keyをプロパティ名にする必要があるようだ。
@TypeConversion(key="custom", converter = "tutorial.MyCustomTypeConverter") public void setCustom(CustomType custom) { this.custom = custom; }