1

HIbernate Search 中时间戳的 FieldBridge 是什么?

@场地

公共 java.sql.Timestamp 批准日期;

4

2 回答 2

2

When looking at the BridgeFactory source code, it seems there is no default FieldBridge for timestamps.

I think you should provide your own custom FieldBridge.

于 2009-06-03T16:25:23.330 回答
0

长话短说,这是我使用的:

@Field(index=Index.UN_TOKENIZED)
@DateBridge(resolution=Resolution.MILLISECOND)
public Timestamp getCreated(){
  return super.getCreated();
}

好在它运行良好:)

于 2009-09-18T13:59:20.447 回答