Home » Search

About Date

21-30 of 199Refresh
Forum
20

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

; @Temporal(TemporalType.TIMESTAMP) @Column(name = "myDate") Date myDate; } Now ... would get an IllegalArgumentException: Parameter value [%myQuery%] did not match expected type [java.util.Date (n/a)] because I ... of the WHERE clauses obviously makes a difference. The date column seems to be converted to a String
Forum
20

Using date in where clause

-2013" Here I have created Persons object as java.sql.Date attribute.   But in doing so I am getting ... with date in where clause. The query is invalid because you compare a date (the creationDate field) with a string literal ("07-25-2013"). Replace the string with a date literal or a parameter. n126961
Forum
20

Query results are not up to date for entities, not primitives

generic functions to build generic TypedQuerys. I just realized that the data retrieving up to date if I ... should return up to date results, if: You are using a new EntityManager (i.e. with no old cache ... above have severe natural limitation in respect of getting up to date data from later queries. Try to replace UPDATE
Forum
20

In version 2.5.2_05 does not work greatest by Date

In earlier versions this query worked fine. In version 2.5.2_05 does not work .orderBy(cb.desc(cb.greatest(root.get("createDate").as(Date.class)))).distinct(true) Thank you for your help. Please try build 2.5.2_06 that should fix this regression (of casting to Date). galandor
Forum
20

log entry date/time

It would be very useful if each entry in the log file has a date/time stamp. Thanks, Carl   Version 2.2.2 adds date/time stamps to the log. Thank you for your suggestion. FastModel
Forum
19

Entity Update - Is the documentation up to date?

is always expected to be up to date with the last ObjectDB version. > First, I've been modifying managed entities
Manual
18

Index Definition

; @Unique Integer indexedField4; // unique @Unique(name="u2") Date indexedField5; // unique ... , Long, Float, Double. java.math.BigInteger, java.math.BigDecimal. java.lang.String. java.util.Date, java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type. Reference to an entity object
Manual
18

JPA Primary Key

. java.lang.String. java.util.Date, java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type ... Class EventId { int sensorId; Date time; } Because entity objects are ordered in
Tutorial
18

Step 2: Define a JPA Entity Class

.Serializable; import java.sql.Date; import javax.persistence.Entity; import javax.persistence ... @GeneratedValue Long id; private String name; private Date signingDate ... ; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation
Tutorial
18

Step 2: Define a JPA Entity Class

code: package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence ... Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis