ObjectDB Database Search

51-100 of 176 results

Group by date / time

. Each entity has it's own field that holds java.lang. Date . There is no function like YEAR(), MONTH ... WHERE YEAR(record_ date ) = 2009 GROUP BY YEAR(record_ date ), MONTH(record_ date ) or maybe something like this: SELECT COUNT(id) FROM stats WHERE YEAR(record_ date ) = 2009 GROUP BY DATE _FORMAT(record_ date

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

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

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

jakarta.persistence.criteria.TemporalField

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.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

jakarta.persistence.criteria.LocalDateTimeField

which can be extracted from a LocalDateTime . Since: Jakarta Persistence (JPA) 3.2 Public Static Fields DATE The date part of a datetime. Since: Jakarta Persistence (JPA) 1.0 DAY The calendar day of the month

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

jakarta.persistence.EmbeddedId

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

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

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

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

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

EntityManager.refresh takes a long time

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

Calendar in Criteria Querys

temporal types: java.sql. Date - representing date with no time. java.sql.Time - representing time with no date . java.sql.Timestamp - representing both data and time. If possible, you should use these types instead of java.util.Calendar and java.util. Date , which eventually should be handled as

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

Long version;         private Date startDate;         // Date : date part of startDateTime     private Date startTime

Entity listener - event instead of object

().toString();             final Date transTime = new Date (); // new Date (event.getSource().getTimestamp());        ... value: {}, new value: {}, actor: {}, date : {}", new Object[] { OPERATION_TYPE_UPDATE, entityName

Query performance in general

and date where id is indexed and date is not. Would it make sense to have "WHERE $1.id ... AND $1. date = ..." instead of "WHERE $. date = ... AND $1.id ..."? We saw that there is a special statement

Corrupted Database or error in ObjectDBExplorer?

.TestCaseImpl but somehow the Explorer doesn't have the up to date schema in the database. If this is the case, try to open the database with up to date schema (your entity classes and XML metadata if any ... persistent field, and again opening the database when the up to date class is available in

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

significant performance decrease

= 1L; @Id public String uUid; public Integer associatedFileCurrentVersion; public Date associatedFileLastModification; @Index public String classIdentifier; public Date created; // HS-778 public Map ... //@Index public Date modified; @Index public String nodePath; public Integer nodeToProcess; @Index

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

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

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