ObjectDB Database Search

1-50 of 72 results

Date and Time in JPQL and Criteria Queries

Date and time expressions can appear in JPQL queries in the following ways: As date and time literals --for example, {d '2011-12-31'} and {t '23:59:59'} . As parameters --when date and time values are passed as arguments. As path expressions --to navigate to persistent date and time fields. As

JPA Persistable Types

`, ` Date `, and math types. Multi-value types: Collections, maps, and arrays. Miscellaneous types: Enum ... .util. Date , java.util.Calendar , java.sql. Date , java.sql.Time , java.sql.Timestamp, java.time ... .OffsetDateTime , java.time.Instant. Date and time types are discussed in more detail in the next section. Date

jakarta.persistence.TypedQuery.setParameter(Parameter,Date,TemporalType)

;  Parameter param ,    Date value ,    TemporalType temporalType ) Bind an instance of Date to a Parameter object. Parameters: temporalType - temporal type param - parameter ... should use the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(String,Date,TemporalType)

;  String name ,    Date value ,    TemporalType temporalType ) Bind an instance of Date to a named parameter. Parameters: name - parameter name temporalType - temporal type ... is of incorrect type. Deprecated: Newly-written code should use the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(int,Date,TemporalType)

;  int position ,    Date value ,    TemporalType temporalType ) Bind an instance of Date to a positional parameter. Parameters: position - position temporalType - temporal ... is of incorrect type. Deprecated: Newly-written code should use the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(int,Date,TemporalType)

setParameter (    int position ,    Date value ,    TemporalType temporalType ) Bind an instance of java.util. Date to a positional parameter. Parameters: position ... if the value argument is of incorrect type. Deprecated: Newly-written code should use the date /time

jakarta.persistence.StoredProcedureQuery.setParameter(Parameter,Date,TemporalType)

setParameter (    Parameter param ,    Date value ,    TemporalType temporalType ) Bind an instance of Date to a Parameter object. Parameters: temporalType - temporal ... : Newly-written code should use the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(String,Date,TemporalType)

setParameter (    String name ,    Date value ,    TemporalType temporalType ) Bind an instance of java.util. Date to a named parameter. Parameters: name - parameter name ... if the value argument is of incorrect type. Deprecated: Newly-written code should use the date /time types

Internal exception when updating date filed (TemporalType.DATE)

Hello! ObjectDB version 2.5.3_02. I get internal exception when commiting update Date field (javax.persistence.TemporalType. DATE ). [ObjectDB 2.5.3_02] javax.persistence.RollbackException Failed ... ; List dates = new ArrayList ();         calendar.set(1980, 2, 1

Date field Index is corrupted due to time change

the bug, which affects indexes on pure Date fields (i.e. date with no time). ObjectDB converts pure date values between local time and UTC more than once during transaction commit, and on clock ... that records are being added to the DB at the time of the time change. However, what values in the date

java.sql.Date equals comparison not working with CriteriaAPI

Hello, Using ODB 2.4.5 and the Criteria API, doing a simple equals comparison with java.sql. Date ... = ...; Root root = ...; java.sql. Date myDate = ...; Predicate predicate = builder.equal(root ... greaterEqual or lessEqual with Criteria API will yield in correct results except if the given date

Dates

Question on dates . SQL doesn't seem to store timezone with dates (oddly). So, any best practises with ODB? 1. use java.util. Date 2. Milliseconds since January 1, 1970, 00:00:00 GMT 3. other? dmoshal David Moshal When a Date instance is stored in an ObjectDB database it is converted automatically

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

(TemporalType.TIMESTAMP) @Column(name = "myDate") Date myDate; } Now, when querying the db with: Query q ... value [%myQuery%] did not match expected type [java.util. Date (n/a)] because I haven't declared ... a difference. The date column seems to be converted to a String so it can be compared with the query

com.objectdb.o.InternalException: java.lang.NoClassDefFoundError: java/sql/Date

.NoClassDefFoundError: java/sql/ Date java.lang.NoClassDefFoundError: java/sql/ Date at objectdb/com ... .JavaObjectDBApp.main(JavaObjectDBApp.java:14) Caused by: java.lang.ClassNotFoundException: java.sql. Date ... is ... module ObjectDBTest { requires objectdb; } This is perplexing because java.sql. Date comes with the JDK

JPA Attributes Annotations

used to specify the storage format for enumerated types. Temporal mapping Map legacy date ... ): Specifies the database SQL type for a persistent field or property of type java.util. Date or java.util.Calendar . Specifies the database SQL type for a map key of type java.util. Date or java.util.Calendar

log entry date/time

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

Index Definition

( name ="u2") Date indexedField5; // unique } The @Unique annotation defines a unique index ... .util. Date , java.sql. Date , java.sql.Time , java.sql.Timestamp Any enum type A reference

JPA Query Expressions (JPQL / Criteria)

on the following pages: Literals and dates ( literal , nullLiteral , currentDate , …) Paths, navigation ... ) String expressions ( like , length , locate , lower , upper , concat , substring , …) Date and time

Apache License, Version 2.0, January 2004

to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution

FROM clause (JPQL / Criteria API)

_LENGTH, BOTH, BY, CASE, CHAR_LENGTH, CHARACTER_LENGTH, CLASS, COALESCE, CONCAT, COUNT, CURRENT_ DATE

Schema Update

, the instructions should usually be on the client side, where the up-to- date classes are located. The following

JPA Metamodel Types

, Strings, or Dates ) that do not contain persistent attributes of their own. An enumeration

General Performance Issues Illustrated with a Specific Method

listPatientsByIDsWithBasicData(String ids) { Long st = new Date ().getTime(); System.out.println ... ); System.out.println("cs size = " + cs.size()); Long ed = new Date ().getTime(); System.out.println ... java.io.Serializable; import java.util. Date ; import javax.jdo.annotations.Index; import javax

jakarta.persistence.MapKeyTemporal

of type Date and Calendar . It may only be specified for map keys of these types. The MapKeyTemporal ... with the ElementCollection , OneToMany , or ManyToMany annotation. Example: @OneToMany @MapKeyTemporal( DATE ) protected Map employees; Deprecated: Newly-written code should use the date /time types defined in java

jakarta.persistence.Embeddable

EmploymentPeriod { @Temporal( DATE ) java.util. Date startDate; @Temporal( DATE ) java.util. Date endDate

jakarta.persistence.Id

primitive wrapper type; String ; UUID ; Date ; Date ; BigDecimal ; BigInteger . The mapped column

jakarta.persistence.IdClass

Date birthDay; ... } public record EmployeePK(String empName, Date birthDay) {} See Also: EmbeddedId

Bug when using SIZE in combination with date lower parameter

there seems to be a bug if I use the lower date select: SELECT j.jobId, SIZE(j.tags) FROM ParserJob j WHERE j.dateCreated = : date I get the correct result (1 Tag). You find a test case at  . Please start ... cannot be both before and after the date parameter. support Support Hello, to archieve the results the date

query on calendar class

'}? The only solution is keep time and date i other fields and do that same wiht DAY_OF_WEEK? Solek Henryk Walezy ObjectDB does not currently support extracting a day of week from a date (methods for extracting other date parts are supported by ObjectDB as an extension to JPA), so you should consider

Step 2: Entity Class and Persistence Unit

.Serializable; import java.sql. Date ; import javax.persistence.Entity; import javax.persistence ... String name; private Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date (System.currentTimeMillis()); } // String Representation

Composite Index error 328

.jdo.annotations.Indices; import javax.persistence.*; import java.io.Serializable; import java.sql. Date ... Integer mail; private int access; private short programType; private Date regDate; private Date regEnd; private Date lastLogin; private String lastIp; private int flags; private String name; private String

jakarta.persistence.EmbeddedId

empName, Date birthDay) {} Example 2: @Embeddable public class DependentId { String name; EmployeeId

TemporalType injection with Calendar using JPA

.TIMESTAMP When I use a java.util. Date as a field on this object there is no problem. However, if I ... one of the supported types for primary keys . JPA supports only java.sql. Date (or java.util. Date that is annotated as DATE ). ObjectDB adds support of Time and Timestamp as an extension, but not

openejb jpa jaas module

.*; /** * Created with IntelliJ IDEA. * User: apple * Date : 31.01.2013 * Time: 06:01 * To change this template ... : apple * Date : 02.02.2013 * Time: 23:15 * To change this template use File | Settings | File Templates ... with IntelliJ IDEA. * User: apple * Date : 27.01.2013 * Time: 02:30 * To change this template use File

jakarta.persistence.TypedQuery.setParameter(String,Calendar,TemporalType)

is of incorrect type. Deprecated: Newly-written code should use the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(Parameter,Calendar,TemporalType)

code should use the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(int,Calendar,TemporalType)

is of incorrect type. Deprecated: Newly-written code should use the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Temporal.value

Jakarta Persistence (JPA) Method in jakarta.persistence.Temporal TemporalType value The type used in mapping Date or Calendar . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(int,Calendar,TemporalType)

the date /time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(String,Calendar,TemporalType)

or if the value argument is of incorrect type. Deprecated: Newly-written code should use the date

JPA inheritance issue with ObjectDB - Field not found in type error

= (String) m.getKey(); if (m.getValue() instanceof Date ) { Date pVal = ( Date ) m.getValue(); qry.setParameter(pPara, pVal, TemporalType. DATE ); } else { Object pVal = (Object) m.getValue(); qry.setParameter

Error using query with MAX() function

@Temporal(value = TemporalType.TIMESTAMP) private Date changeDate; public int getId() { return id ... void setRemark(String remark) { this.remark = remark; } public Date getChangeDate() { return changeDate; } public void setChangeDate( Date changeDate) { this.changeDate = changeDate; } } public class

Problem of query With an aggregate function

.nb4xx),SUM(h.nb5xx) FROM HttpEntity h WHERE h.host = :host and h. date _http BETWEEN to_ date (:startDate,'dd/mm/yyyy HH24:mi:ss') AND to_ date (:endDate,'dd/mm/yyyy HH24:mi:ss')"); listClassRepHost

How to Use a SF with extended Persistence Context?

it that will make it show each name only once with his last login date . The changes are as follows ... for the guest in the DB. if it finds one it updater his date to the current date . if not, it stores a new

List of Enum Values in an entity

.io.Serializable; import java.sql. Date ; import java.util.ArrayList; import javax.persistence.Entity ... Date      signingDate; private GuestFlag    status; private ... ; this.signingDate = new Date (System.currentTimeMillis());   this.flags = new ArrayList ();   this.flags

JSON serialization and __odbHidden members

;    " date ": "2015-10-30T17:25:55.359+03:00",        "ua ... ; {        "IP": "127.0.0.1",        " date ... .0.1",        " date ": "2015-10-30T17:25:55.359+03:00",   

Failed to read DB file while online backup is running

; public void performTask( Date date ) {   long wholestart = D.profile("Starting BackupDatabaseTask ... ;  if(subdir.isDirectory() && ( date .getTime() - subdir.lastModified() INTERVAL_TO_KEEP_BACKUPS

combined index not used

that it is indeed very slow. Could you please provide a typical value for the ?1 (end date ) parameter ... the current date (in your case the date of the last Action). The endDate is created as soon as an Action ... :notNull])" eval="0.9675" variable="a" / =current-java.sql. Date )),(a.state=3)),(a.subType=3)),(a.type=0

ObjectDB for .NET (C# / VB)

on the progress of this porting to .NET ? When is the expected date of release and what sort ... ObjectDB users (which use Java) are at higher priority - there is no target date for completing this feature request. support Support Is there a way to negotiate such priority (in terms of date , price

ObjectDB 2.6.5

request #1658 ). Fixed a bug in persisting dates ( TemporalType. DATE ) based on time close to clock change . Fixed a bug in indexing java.sql. Date fields during time / time zone change . Fixed a bug in detachment of embedded objects ( if enabled ).