playframeworkを使用すると、モデルの列定義としてゲッターを使用できますか? getterをモデルプロパティとして使用する
@Column(name="filename")
public String getFilename() {
return getFile().getName();
}
それは
playframeworkを使用すると、モデルの列定義としてゲッターを使用できますか? getterをモデルプロパティとして使用する
@Column(name="filename")
public String getFilename() {
return getFile().getName();
}
それは
を動作しませんでした私はそれが可能だとは思わない:私はこれを試してみました。 モデル列を通常のように定義し、必要に応じて特定の機能を定義して特別な機能を追加することができます。
これが役に立ちます。 documentationで
マルタ
(悲しげにPDFそれは簡単にリンクされていないので):
@Column Use this if the naming convention does not match the bean property name to the database column or if you need to use quoted identifiers. Otherwise it is not required.
私はフィールドを意味するために取るすべての例で、 "プロパティ" を参照してくださいを通じて( )。メソッドに注釈を付ける例はありません。