About Date

61-70 of 200Refresh
JPA Doc
8

javax.persistence.criteria.CriteriaBuilder

of objects as its result. Returns: criteria query object Since: JPA 2.0 Expression<Date> currentDate() Create expression to return current date. Create expression to return current date. Returns: expression for current date Since: JPA 2.0 Expression
JDO Doc
7

javax.jdo.PersistenceManager

Date getServerDate() Get the Date as seen by the server. Get the Date as seen by the server. Clients ... the setting of the server time zone to prepare a Date instance that represents UTC time on the server. Returns: a Date instance corresponding to the UTC Date as seen by the server Since: JDO 2.1
JPA Doc
7

javax.persistence.Temporal

) This annotation must be specified for persistent fields or properties of type java.util.Date and java.util ... annotation (when the element collection value is of such a temporal type. Example: @Temporal(DATE) protected java.util.Date endDate; Since: JPA 1.0 Learn how to define and use date and time
JDO Doc
6

getServerDate()

Method javax.jdo.PersistenceManager Date getServerDate() Get the Date as seen by the server ... use the setting of the server time zone to prepare a Date instance that represents UTC time on the server. Returns: a Date instance corresponding to the UTC Date as seen by the server Since: JDO 2.1
JPA Doc
6

javax.persistence.TemporalType

Type used to indicate a specific mapping of java.util.Date or java.util.Calendar. Since: JPA 1.0 Learn how to define and use date and time fields in Chapter 2 of the ObjectDB/JPA manual. TemporalType DATE Map as java.sql.Date Map as java.sql.Date Since: JPA 1.0 TemporalType TIME Map as
JDO Doc
6

javax.jdo.Query

and instances of wrapper classes are valid. Equality and ordering comparisons of Date fields and Date ... ; BigDecimal; BigInteger; String; and Date. Parameters: ordering - the ordering specification. Since: JDO ... class Date; or one of the java.sql classes Date, Time, or Timestamp; or a user-defined class
Issue
6

combined index not used

shows that it is indeed very slow. Could you please provide a typical value for the ?1 (end date ... more, but you could check in the Action table, typically we take an endDate that is 30 days from the current date (in your case the date of the last Action). The endDate is created as soon as an Action switches
JPA Doc
5

javax.persistence.Embeddable

class. Example 1: @Embeddable public class EmploymentPeriod { @Temporal(DATE) java.util.Date startDate; @Temporal(DATE) java.util.Date endDate; ... } Example 2
JPA Doc
5

javax.persistence.MapKeyTemporal

) This annotation must be specified for persistent map keys of type java.util.Date and java.util.Calendar ... with the ElementCollection, OneToMany, or ManyToMany annotation. Example: @OneToMany @MapKeyTemporal(DATE ... ) The type used in mapping java.util.Date or java.util.Calendar. (Required) The type used in mapping java.util.Date or java.util.Calendar. Since: JPA 2.0
Forum
5

Wrong data stored in time only fields

This may be related to the fix for the problem described in this thread: Wrong data stored in date only fields. The object and its date and time fields are the same as in the referenced thread ... are using the 2015g time zone data. While we cannot see a problem with date only fields (more testing