@Field(store = Store.NO) @DateBridge(resolution = Resolution.MILLISECOND) @Transient @Override public Date getModifiedAt() { return super.getModifiedAt(); }
@Override public FieldBridge provideFieldBridge(ExtendedBridgeProviderContext context) { AnnotatedElement annotatedElement = context.getAnnotatedElement(); if ( Date.class.isAssignableFrom( context.getReturnType() ) ) { if ( annotatedElement.isAnnotationPresent( org.hibernate.search.annotations.DateBridge.class ) ) { DateBridge dateBridgeAnnotation = annotatedElement.getAnnotation( org.hibernate.search.annotations.DateBridge.class ); Resolution resolution = dateBridgeAnnotation.resolution(); EncodingType encodingType = dateBridgeAnnotation.encoding(); return getDateFieldBridge( resolution, encodingType ); } else { return getDateFieldBridge( Resolution.MILLISECOND, EncodingType.NUMERIC ); } } return null; }
private Resolution getDateResolution(AnnotatedElement annotatedElement) { if ( annotatedElement.isAnnotationPresent( DateBridge.class ) ) { return annotatedElement.getAnnotation( DateBridge.class ).resolution(); } return Resolution.MILLISECOND; }
private Resolution getDateResolution(AnnotatedElement annotatedElement) { if ( annotatedElement.isAnnotationPresent( DateBridge.class ) ) { return annotatedElement.getAnnotation( DateBridge.class ).resolution(); } return Resolution.MILLISECOND; }
/** * Simple field ome.model.jobs.Job.scheduledFor (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="scheduledFor", updatable=true) public java.sql.Timestamp getScheduledFor() { if (! _loaded ) errorIfUnloaded(); return this.scheduledFor; }
@Override public FieldBridge provideFieldBridge(ExtendedBridgeProviderContext context) { AnnotatedElement annotatedElement = context.getAnnotatedElement(); if ( Date.class.isAssignableFrom( context.getReturnType() ) ) { if ( annotatedElement.isAnnotationPresent( org.hibernate.search.annotations.DateBridge.class ) ) { DateBridge dateBridgeAnnotation = annotatedElement.getAnnotation( org.hibernate.search.annotations.DateBridge.class ); Resolution resolution = dateBridgeAnnotation.resolution(); EncodingType encodingType = dateBridgeAnnotation.encoding(); return getDateFieldBridge( resolution, encodingType ); } else { return getDateFieldBridge( Resolution.MILLISECOND, EncodingType.NUMERIC ); } } return null; }
/** * Simple field ome.model.meta.DBPatch.finished (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="finished", updatable=false) public java.sql.Timestamp getFinished() { if (! _loaded ) errorIfUnloaded(); return this.finished; }
/** * Simple field ome.model.meta.Session.started (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="started", updatable=true) public java.sql.Timestamp getStarted() { if (! _loaded ) errorIfUnloaded(); return this.started; }
/** * Simple field ome.model.core.OriginalFile.atime (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="atime", updatable=true) public java.sql.Timestamp getAtime() { if (! _loaded ) errorIfUnloaded(); return this.atime; }
/** * Simple field ome.model.core.OriginalFile.mtime (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="mtime", updatable=true) public java.sql.Timestamp getMtime() { if (! _loaded ) errorIfUnloaded(); return this.mtime; }
/** * Simple field ome.model.meta.Session.closed (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="closed", updatable=true) public java.sql.Timestamp getClosed() { if (! _loaded ) errorIfUnloaded(); return this.closed; }
/** * Simple field ome.model.meta.Node.up (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="up", updatable=true) public java.sql.Timestamp getUp() { if (! _loaded ) errorIfUnloaded(); return this.up; }
/** * Simple field ome.model.core.OriginalFile.ctime (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="ctime", updatable=true) public java.sql.Timestamp getCtime() { if (! _loaded ) errorIfUnloaded(); return this.ctime; }
/** * Simple field ome.model.core.Image.acquisitionDate (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="acquisitionDate", updatable=true) public java.sql.Timestamp getAcquisitionDate() { if (! _loaded ) errorIfUnloaded(); return this.acquisitionDate; }
/** * Simple field ome.model.screen.PlateAcquisition.startTime (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="startTime", updatable=true) public java.sql.Timestamp getStartTime() { if (! _loaded ) errorIfUnloaded(); return this.startTime; }
/** * Simple field ome.model.screen.PlateAcquisition.endTime (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="endTime", updatable=true) public java.sql.Timestamp getEndTime() { if (! _loaded ) errorIfUnloaded(); return this.endTime; }
/** * Simple field ome.model.jobs.Job.submitted (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="submitted", updatable=true) public java.sql.Timestamp getSubmitted() { if (! _loaded ) errorIfUnloaded(); return this.submitted; }
/** * Simple field ome.model.meta.Event.time (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="time", updatable=true) public java.sql.Timestamp getTime() { if (! _loaded ) errorIfUnloaded(); return this.time; }
/** * Simple field ome.model.jobs.Job.started (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="started", updatable=true) public java.sql.Timestamp getStarted() { if (! _loaded ) errorIfUnloaded(); return this.started; }
/** * Simple field ome.model.jobs.Job.finished (java.sql.Timestamp) */ // No @Type annotation @org.hibernate.search.annotations.DateBridge( resolution=org.hibernate.search.annotations.Resolution.MINUTE) @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, name = "combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=true, unique=false, name="finished", updatable=true) public java.sql.Timestamp getFinished() { if (! _loaded ) errorIfUnloaded(); return this.finished; }