Internal Website Search

51-100 of 200 results

Auto Date for Creation and Update

Date gets  updated  once only and the change Date on each change? It seems for hibernate there Are annotations for it for Dates and also prepersist and preupdate. How about with objectdb ... these time/ date fields in a JPA lifecycle event methods . support Support Hi, Using the proposed solution I

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

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

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

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

: java.lang.NoClassDefFoundError: java/sql/ Date java.lang.NoClassDefFoundError: java/sql/ Date ... .main(Main.java:19) Caused by: java.lang.ClassNotFoundException: java.sql. Date at java.base/jdk ... idea why java.sql. Date is not found in the classpath? Which Java version are you using? Do you use

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

javax.persistence.Query

to a parameter of the query Since: JPA 2.0 Query setParameter ( Parameter  param,  Date  value,  TemporalType  temporalType) Bind an instance of java.util. Date to a Parameter ... Query setParameter (String name,  Date  value,  TemporalType  temporalType

javax.persistence.TypedQuery

to a parameter of the query Since: JPA 2.0 TypedQuery setParameter ( Parameter  param,  Date  value,  TemporalType  temporalType) Bind an instance of java.util. Date to a Parameter ... Since: JPA 2.0 TypedQuery setParameter (String name,  Date  value,  TemporalType  

javax.persistence.StoredProcedureQuery

of the query Since: JPA 2.1 StoredProcedureQuery setParameter ( Parameter  param,  Date  value,  TemporalType  temporalType) Bind an instance of java.util. Date to a Parameter object ... is of incorrect type Since: JPA 2.1 StoredProcedureQuery setParameter (String name,  Date  value

javax.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

javax.persistence.criteria.CriteriaBuilder

() Create expression to return current date . Return: expression for current date Since: JPA 2.0 Expression ... the greatest of the values (strings, dates , etc). Parameters: x - expression representing input ... (strings, dates , etc). Parameters: x - expression representing input value to least operation Return

javax.persistence.Embeddable

of an embeddable class. Example 1: @Embeddable public class EmploymentPeriod { @Temporal( DATE ) java.util. Date startDate; @Temporal( DATE ) java.util. Date endDate; ... } Example 2: @Embeddable public

javax.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

javax.persistence.MapKeyTemporal

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

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

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

javax.persistence.Basic

, String , java.math.BigInteger , java.math.BigDecimal , java.util. Date , java.util.Calendar , java.sql. Date , java.sql.Time , java.sql.Timestamp , byte[] , Byte[] , char[] , Character[] , enums, and any

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

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

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

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

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

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

CriteriaBuilder.currentDate() - JPA Method

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

javax.persistence.Id

should be one of the following types: any Java primitive type; any primitive wrapper type; String ; java.util. Date ; java.sql. Date ; java.math.BigDecimal ; java.math.BigInteger . The mapped column for the primary key

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

javax.persistence.Temporal.value

JPA Annotation Attribute in javax.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 javax.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 javax.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

javax.persistence.MapKeyTemporal.value

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

javax.persistence.IdClass

public class Employee { @Id String empName; @Id Date birthDay; ... } Since: JPA 1.0 Public Annotation

PersistenceManager.getServerDate() - JDO Method

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

javax.jdo.Query

comparisons of Date fields and Date parameters are valid. White space (non-printing characters space ... except Boolean ; BigDecimal ; BigInteger ; String ; and Date . Parameters: ordering - the ordering ... .util class Date ; or one of the java.sql classes Date , Time, or Timestamp; or a user-defined class

javax.jdo.PersistenceManager

. Parameters: name - the name of the Sequence Return: the Sequence Since: JDO 2.0 Date getServerDate () Get the Date as seen by the server. Clients using this method can order their operations according to a single time source. Implementations use the setting of the server time zone to prepare a Date

Query.setResultClass(cls) - JDO Method

BigDecimal; or the java.util class Date ; or one of the java.sql classes Date , Time, or Timestamp; or

Query.setFilter(filter) - JDO Method

and instances of wrapper classes are valid. Equality and ordering comparisons of Date fields and Date

javax.jdo.annotations.VersionStrategy

JDO Enum VersionStrategy java.lang.Object ∟  java.lang.Enum ∟  javax.jdo.annotations.VersionStrategy Enumeration of the version strategy values. Since: JDO 2.1 Enum Constants DATE _TIME Since: JDO 2.1 NONE Since: JDO 2.1 STATE_IMAGE Since: JDO 2.1 UNSPECIFIED Since: JDO 2.1 VERSION_NUMBER

javax.jdo.FetchGroup.BASIC

well as Date and its jdbc subtypes and Enum types. Since: JDO 2.2

javax.jdo.spi.JDOImplHelper

(DateFormat df) Register a DateFormat instance for use with constructing Date instances

javax.jdo.FetchGroup

, including String, Locale, Currency, BigDecimal, and BigInteger; as well as Date and its jdbc subtypes

Query.setOrdering(ordering) - JDO Method

types except Boolean ; BigDecimal ; BigInteger ; String ; and Date . Parameters: ordering - the ordering specification. Since: JDO 1.0

JDOImplHelper.registerDateFormat(df) - JDO Method

JDO Method in javax.jdo.spi.JDOImplHelper void registerDateFormat (   DateFormat df ) Register a DateFormat instance for use with constructing Date instances. The default is the default DateFormat instance. If the new instance implements SimpleDateFormat, get its pattern for error