messages.properties からドメインのラベル プロパティを取得するにはどうすればよいですか。たとえば、次のようなドメインがあります
class Books{
String name
String author
String description
String rating
}
そして、message.propertiesには次のものがあります
Books.name.label=Title
Books.author.label=Author
Books.description.label=Description
Books.rating.label=Rating
だから私は何かをすることができます
def fieldName = Books.name.label
「タイトル」を取得しますか?これを行う方法はありますか?