ObjectDB Database Search

51-100 of 200 results

Using date in where clause

-2013" Here I have created Persons object as java.sql. Date attribute.   But in doing so I ... a query with date in where clause. n126961 Sandip 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 . support Support

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

TypedQuerys. I just realized that the data retrieving up to date   if I do not use the generic ... ! flavioreboucassantos Flávio Rebouças Santos After such an update queries should return up to date ... limitation in respect of getting up to date data from later queries. Try to replace UPDATE queries

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

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. galandor Orlov Sergey Please try build 2.5.2_06 that should fix this regression (of casting to Date ). support Support

Entity Update - Is the documentation up to date?

The online manual is always expected to be up to date with the last ObjectDB version.  First, I've

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

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

date parameter not working (probably) in explorer

in explorer, for a query like this:     select o from ObjectNode o where o.classIdentifier = '(PR)' and o.created ?1 we try to set the parameter (its a java.util. Date ) in ... '. A workaround for previous versions is to use a date literal (embedded in the query) instead of a date parameter. support Support

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

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

Trouble bug on explorer

.Serializable; import java.util. Date ; import java.util.List; /** * Created with IntelliJ IDEA. * User: apple * Date : 15.07.2012 * Time: 18:54 * To change this template use File | Settings | File Templates ... access; private int programType; private Date regDate; private Date regEnd; private String jxtaUUID

Performance question

e.g. a date field you want to query for. Is there an improvement in performance if I create a "mirror" date field in the original entity, removing the need to traverse through the referenced other entity? So, querying for "all objects with object.otherobject. date 1.1.1980" is slower

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

() Create expression to return current date . Return: expression for current date Since: JPA 2.0 Expression ... the value of a field extracted from a date , time, or datetime. Parameters: field - a temporal field type temporal - a date , time, or datetime Return: expression for the value of the extracted field

Schema update: package, class and field

is that a coincidence?   Example: Version 1: class A { String date ; } Version 2: class A { String old_ date ; //renamed Date date ; } Schema: .. .. We expect following: version1: ( date ="21.07.2015" )     converted to   version2: ( old_ date ="21.07.2015"; date =null) btc_es BTC

Error 363 - Failed to read value of inverse relationship

(TemporalType.TIMESTAMP) private Date signUpDate = new Date (), signInDate; @Embedded @OneToOne private ... @GeneratedValue private Long id; @Temporal(TemporalType.TIMESTAMP) private Date sendDate = new Date ... .TIMESTAMP) //    private Date sendDate = new Date (); // //    private String

Replication error on slave restart

opened master db with explorer [DATA PRESENT - AND UP TO DATE ] 3) I copied sm.db file to my PC ... [DATA PRESENT - BUT NOT UP TO DATE (more simular with slave)] So my answer for your question ... was stoped since end of case 1) 2) started slave ODB server [NO EXCEPTIONS! DATA IS UP TO DATE

Possible issue with String fields

.persistence.TemporalType. DATE ) Date start_dt; @Temporal(javax.persistence.TemporalType. DATE ) Date end_dt; @Temporal(javax.persistence.TemporalType. DATE ) Date new_end_dt; String vehicle_group; String vehicle

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

First query takes 4+ minutes to complete

; // Annotated with @Version : private Short channelNumber; : private Date startDate; // Date : date part of startDateTime private Date startTime; // Time: time part of startDateTime : private String ... , r.toExtension) FROM RecordingMetaData AS r The expected result is 7 records ( date , extension

AnnotationRef jakarta.persistence.Temporal

must be specified for persistent fields or properties of type java.util. Date and java.util.Calendar ... when the element collection value is of such a temporal type. Example: @Temporal( DATE ) protected java.util. Date endDate; Since: JPA 1.0 The JPA Persistable Types article explains how to use Temporal

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

EntityManager.refresh takes a long time

; logger.log(Level.INFO, "begin select for person " + new Date ().toString());     ... " + new Date ().toString());                ... ;  person + "  "+ new Date ().toString());        

EnumRef jakarta.persistence.TemporalType

.TemporalType Type used to indicate a specific mapping of java.util. Date or java.util.Calendar . Since: JPA 1.0 The JPA Persistable Types article explains how to use TemporalType . Enum Constants DATE Map as java.sql. Date Since: JPA 1.0 TIME Map as java.sql.Time Since: JPA 1.0 TIMESTAMP Map as java.sql

Query.setParameter(param,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.Query Query setParameter (    Parameter  param,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a Parameter object. Parameters: param - parameter object value - parameter

Query.setParameter(position,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.Query Query setParameter (   int position,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a positional parameter. Parameters: position - position value - parameter value

Query.setParameter(name,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.Query Query setParameter (   String name,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a named parameter. Parameters: name - parameter name value - parameter value

TypedQuery.setParameter(param,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setParameter (    Parameter  param,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a Parameter object. Parameters: param - parameter object value

AnnotationRef jakarta.persistence.Basic

.OffsetDateTime , java.time.Instant , or java.time.Year java.util. Date or java.util.Calendar , java.sql. Date , java.sql.Time , or java.sql.Timestamp , byte[] or Byte[] , char[] or Character[] , a Java enum

CriteriaBuilder.localDate() - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression localDate () Create expression to return current local date . Return: expression for current date Since: JPA 2.0

CriteriaBuilder.extract(field,temporal) - JPA Method

that returns the value of a field extracted from a date , time, or datetime. Parameters: field - a temporal field type temporal - a date , time, or datetime Return: expression for the value of the extracted field Since: JPA 3.2

StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (   String name,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a named parameter. Parameters: name - parameter

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (   int position,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a positional parameter. Parameters: position

StoredProcedureQuery.setParameter(param,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    Parameter  param,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a Parameter object. Parameters: param

TypedQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in jakarta.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

TypedQuery.setParameter(name,value,temporalType) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setParameter (   String name,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a named parameter. Parameters: name - parameter name value - parameter

InterfaceRef jakarta.persistence.criteria.TemporalField

JPA Interface TemporalField Type Parameters: - the resulting type of the extracted value - the temporal type ( date , time, or datetime) Each instance represents a type of field which can be extracted from a date , time, or datetime. See Also: LocalDateField LocalTimeField LocalDateTimeField CriteriaBuilder.extract Since: JPA 3.2

CriteriaBuilder.currentDate() - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentDate () Create expression to return current date . Return: expression for current date Since: JPA 2.0

AnnotationRef jakarta.persistence.MapKeyTemporal

JPA Annotation MapKeyTemporal Target: METHOD, FIELD Implemented Interfaces: Annotation This annotation must be specified for persistent map keys of type java.util. Date and java.util.Calendar ... Attributes TemporalType value default null (Required) The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 2.0

AnnotationRef jakarta.persistence.Id

.util. Date ; java.sql. Date ; java.math.BigDecimal ; java.math.BigInteger . The mapped column

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

ClassRef jakarta.persistence.criteria.LocalDateTimeField

3.2 Public Methods String toString () Since: JPA 3.2 Public Static Fields DATE The plain

AnnotationAttrRef jakarta.persistence.Temporal.value

JPA Annotation Attribute in jakarta.persistence.Temporal TemporalType value default null The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 1.0

CriteriaBuilder.least(x) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression least (    Expression  x ) Create an aggregate expression for finding the least of the values (strings, dates , etc). Parameters: x - expression representing input value to least operation Return: least expression Since: JPA 2.0

CriteriaBuilder.greatest(x) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression greatest (    Expression  x ) Create an aggregate expression for finding the greatest of the values (strings, dates , etc). Parameters: x - expression representing input value to greatest operation Return: greatest expression Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.MapKeyTemporal.value

JPA Annotation Attribute in jakarta.persistence.MapKeyTemporal TemporalType value default null (Required) The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 2.0

Using SELECT BETWEEN with LocalDate

I am trying to query all entities whose date is between today and today + X days. The date inside ... Element e WHERE e. date between CURRENT_ DATE and : date " , Element. class ) .setParameter( " date " , date ) .getResultList() ; I get the following error for e. date in IntelliJ (Type mismatch: number, date

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

;   private Date createdTime;     @Temporal(javax.persistence.TemporalType.TIMESTAMP)     private Date modifiedTime;     private @Index     @Temporal(javax.persistence.TemporalType.TIMESTAMP)     Date postTime;  

java 8 LocalDateTime is not working in query

. date BETWEEN :startDate AND :endDate ORDER BY t. date "); query.setParameter("startDate", LocalDateTime ...   but it's working fine: SELECT t FROM Test t Joe Joe Khan New Java 8 date /time types are not ... how you can use Java 8 date /time using @Convert , we may be able to add this support. support Support

JPA 2.2 LocalDate still not working

challenges with supporting all the Java 8 date and time fields. They are currently supported ... (e.g. for LocalDate, and not all the Java 8 date and time types) can be added soon. support Support ... . Otherwise, on retrieval a Date instance may be instantiated. Currently selecting such a field in the query