About Temporal

21-30 of 43Refresh
JPA Doc
5

setParameter(position, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   int position,   Date value,   TemporalType temporalType ) Bind an instance of java.util.Date to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Returns: the same query
Issue
5

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null

    @Unique     String url = "";     @Temporal(javax.persistence.TemporalType.TIMESTAMP)     private Date createdTime;     @Temporal(javax.persistence.TemporalType.TIMESTAMP)     private Date modifiedTime;     private @Index     @Temporal(javax.persistence.TemporalType.TIMESTAMP)     Date postTime
Forum
4

Internal exception when updating date filed (TemporalType.DATE)

.randomUUID().toString();         @Temporal(javax.persistence.TemporalType.TIMESTAMP) @Index         private Date createDate = new Date();         @Temporal(javax.persistence.TemporalType ...         @Temporal(javax.persistence.TemporalType.DATE)         private Date birthday
Forum
3

Date field Index is corrupted due to time change

.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.Version ... )         @Temporal(TemporalType.TIMESTAMP)         public Date getStartDateTime ... )         @Temporal(TemporalType.DATE)         public Date getStartDate() {             return startDate
Forum
3

query on calendar class

;     private String A;     @Temporal(TemporalType.TIMESTAMP) private Calendar start; I tested: Query query ... type of start field to: java.sql.Date, java.sql.Timestamp, java.util.Date with @Temporal(TemporalType.DATE), @Temporal(TemporalType.TIME) and @Temporal(TemporalType.TIMESTAMP). I test the queries
Forum
3

Wrong data stored in date only fileds

(optional = false) @Temporal(TemporalType.TIMESTAMP) public Date getStartDateTime ... ) { this.startDateTime = startDateTime; } @Basic(optional = false) @Temporal ... = false) @Temporal(TemporalType.TIME) public Date getStartTime() { return startTime
Forum
3

Wrong data stored in time only fields

.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.Version ... )         @Temporal(TemporalType.TIMESTAMP)         public Date getStartDateTime ... )         @Temporal(TemporalType.DATE)         public Date getStartDate() {             return startDate
Forum
3

Calendar in Criteria Querys

got such methods, but i dont know how to use those in my query. JPA supports 3 temporal types: java ... ;                 @Temporal(TemporalType.TIMESTAMP)         Calendar c1;                 @Temporal
Forum
3

Error 363 - Failed to read value of inverse relationship

) private String playerName, password, email; @Temporal(TemporalType.TIMESTAMP) private Date ... id; @Temporal(TemporalType.TIMESTAMP) private Date sendDate = new Date(); private ... ; //    //    @Id //    @GeneratedValue //    private Long id; // //    @Temporal(TemporalType.TIMESTAMP
Forum
3

Finding an object by its datetime

class Booking { @Temporal(TemporalType.TIMESTAMP) Calendar btime; }   I'm trying to search ... the posting instructions? Hi, I forgot the @Index beside @Temporal(TemporalType.TIMESTAMP) Calendar btime; It looks like this now in the entity class: @Index @Temporal(TemporalType.TIMESTAMP) Calendar btime