Skip to content
Snippets Groups Projects
Commit 3c7972a2 authored by felmer's avatar felmer
Browse files

SSDM-1676: Fieldbridge annotation added to access date in DataPE

SVN: 33888
parent e19a01be
No related branches found
No related tags found
No related merge requests found
...@@ -562,6 +562,8 @@ public class DataPE extends AbstractIdAndCodeHolder<DataPE> implements ...@@ -562,6 +562,8 @@ public class DataPE extends AbstractIdAndCodeHolder<DataPE> implements
@Column(name = ColumnNames.ACCESS_TIMESTAMP, nullable = false, insertable = false) @Column(name = ColumnNames.ACCESS_TIMESTAMP, nullable = false, insertable = false)
@Generated(GenerationTime.ALWAYS) @Generated(GenerationTime.ALWAYS)
@Field(name = SearchFieldConstants.ACCESS_DATE, index = Index.YES, store = Store.NO) @Field(name = SearchFieldConstants.ACCESS_DATE, index = Index.YES, store = Store.NO)
@FieldBridge(impl = org.hibernate.search.bridge.builtin.StringEncodingDateBridge.class,
params = { @org.hibernate.search.annotations.Parameter(name = "resolution", value = "SECOND") })
@DateBridge(resolution = Resolution.SECOND) @DateBridge(resolution = Resolution.SECOND)
public Date getAccessDate() public Date getAccessDate()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment