hibernate search控制日期格式

xiaoxiao2026-04-15  6

用注解[b]@DateBridge(resolution = Resolution.DAY) [/b]控制日期的格式 非常简单 可查看hibernate search源文件 [b]例[/b] @Field(store = Store.NO, index = Index.UN_TOKENIZED) @Column(name = "update_date") @DateBridge(resolution = Resolution.DAY) public Date getUpdateDate() { return updateDate; } public void setUpdateDate(Date updateDate) { this.updateDate = updateDate; }
转载请注明原文地址: https://www.6miu.com/read-5047374.html

最新回复(0)