/** * @return DATE or TIMESTAMP based on presence of @OrcTemporal annotation. */ protected Category getAnnotationBasedDateCategory() { OrcTemporal orcTemporal = getAnnotation(OrcTemporal.class); if (orcTemporal == null) { Temporal jpaTemporal = getAnnotation(Temporal.class); if (jpaTemporal == null) { return Category.TIMESTAMP; } switch (jpaTemporal.value()) { case DATE: return Category.DATE; case TIME: case TIMESTAMP: return Category.TIMESTAMP; } } switch (orcTemporal.value()) { case DATE: return Category.DATE; case TIMESTAMP: return Category.TIMESTAMP; } return Category.TIMESTAMP; }
private void getTemporal(List<Annotation> annotationList, Element element) { Element subElement = element != null ? element.element( "temporal" ) : null; if ( subElement != null ) { AnnotationDescriptor ad = new AnnotationDescriptor( Temporal.class ); String temporal = subElement.getTextTrim(); if ( "DATE".equalsIgnoreCase( temporal ) ) { ad.setValue( "value", TemporalType.DATE ); } else if ( "TIME".equalsIgnoreCase( temporal ) ) { ad.setValue( "value", TemporalType.TIME ); } else if ( "TIMESTAMP".equalsIgnoreCase( temporal ) ) { ad.setValue( "value", TemporalType.TIMESTAMP ); } else if ( StringHelper.isNotEmpty( temporal ) ) { throw new AnnotationException( "Unknown TemporalType: " + temporal + ". " + SCHEMA_VALIDATION ); } annotationList.add( AnnotationFactory.create( ad ) ); } }
@Temporal(TemporalType.DATE) @Column(name = "created_date", length = 10) public Date getCreatedDate() { return this.createdDate; }
@Temporal(TemporalType.DATE) @Column(name = "last_updated", length = 10) public Date getLastUpdated() { return this.lastUpdated; }
@Temporal(TemporalType.DATE) @Column(name = "last_request_failed_date", length = 10) public Date getLastRequestFailedDate() { return this.lastRequestFailedDate; }
@Temporal(TemporalType.TIMESTAMP) @Column(name = "LastIndexTime", nullable = false, length = 19) public Date getLastIndexTime() { return this.lastIndexTime; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "UPDATE_DATE", length = 26) public Date getUpdateDate() { return this.updateDate; }
@Temporal(TemporalType.TIMESTAMP) @Column(name = "IncrementLastTime", length = 19) public Date getIncrementLastTime() { return this.incrementLastTime; }
@Temporal(DATE) public Date getRevisionDate() { return revisionDate; }
@Column(name = "welcome_time") @Temporal(TemporalType.TIMESTAMP) public Date getWelcomeTime() { return welcomeTime; }
/** * Returns creation date for current blog entry. * * @return Creation date for curretn blog entry. */ @Temporal(TemporalType.TIMESTAMP) @Column(nullable = false) public Date getCreatedAt() { return createdAt; }
/** @return null. */ @Temporal(TemporalType.DATE) @Column(name = "PUBLISH_DATE", length = 10) public Date getPublishDate() { return this.publishDate; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "ADD_TIME", length = 26) public Date getAddTime() { return this.addTime; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "END_TIME", length = 26) public Date getEndTime() { return this.endTime; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "RETURN_TIME", length = 26) public Date getReturnTime() { return this.returnTime; }
@Override @Temporal(TemporalType.TIMESTAMP) @Column(name = "LastUpdateTime", nullable = false, length = 19) public Date getLastUpdateTime() { return this.lastUpdateTime; }
@Temporal(TemporalType.TIMESTAMP) @Column(name = "MarketUpdateTime", length = 19) public Date getMarketUpdateTime() { return this.marketUpdateTime; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "CREATE_TIME", length = 26) public Date getCreateTime() { return this.createTime; }
@Temporal(TemporalType.TIMESTAMP) public Date getLastLogin() {return lastLogin;}
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "DELEGATE_TIME", length = 26) public Date getDelegateTime() { return this.delegateTime; }
@Temporal(TemporalType.TIMESTAMP) @Column(name = "OptTime", nullable = false, length = 19) public Date getOptTime() { return optTime; }
/** @return 创建时间. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "CREATE_TIME", length = 26) public Date getCreateTime() { return this.createTime; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "START_TIME", length = 26) public Date getStartTime() { return this.startTime; }
@Temporal(TemporalType.TIMESTAMP) @Column(name = "LastFetchTime", nullable = false, length = 19) public Date getLastFetchTime() { return this.lastFetchTime; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "SEND_TIME", length = 26) public Date getSendTime() { return this.sendTime; }
@Temporal(TemporalType.TIMESTAMP) @Column(name = "OpTime", nullable = false, length = 19) public Date getOpTime() { return this.opTime; }
@Temporal(TemporalType.TIMESTAMP) @Column(name = "data_inicio", nullable = false) public Date getDataInicio() { return dataInicio; }