ブロブデータ型でextendsGenericModelを使用しようとしていますが、エラーが発生します。
Execution error occured in template
{module:crud}/app/views/tags/crud/form.html. Exception raised was
MissingPropertyException : No such property: id for class: models.Member.
In {module:crud}/app/views/tags/crud/form.html (around line 56)
#{crud.passwordField name:field.name, value:(currentObject ? currentObject[field.name] : null) /}
#{/if}
#{if field.type == 'binary'}
#{crud.fileField name:field.name, value:(currentObject ? currentObject[field.name] : null), id:currentObject?.id /}
#{/if}
#{if field.type == 'longtext'}
#{crud.longtextField name:field.name, value:(currentObject ? currentObject[field.name] : null) /}
#{/if}
私のモデルは:
@Entity
@Table(name = "news_feed")
public class NewsFeed extends GenericModel {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Long news_id;
public Blob news_image;
...
}
extends GenericModel
またはを削除しても、またはblobを削除しても、エラーは発生しません。問題の原因は何ですか?
すべての助けを歓迎します。
ありがとう!