ObjectDB Database Search

101-150 of 200 results

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

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

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

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

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

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

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

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

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

EntityManager.refresh takes a long time

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

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

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

ObjectDB and Spring Boot - sharing a simple working example

;  extends JpaRepository {      List findAllByBirthDateBetween ( Date d1, Date ... findAllByBirthDateBetweenAndGe nder ( Date d1, Date d2, Person .Gender gender);    

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

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

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

What role is the JDO in ObjectDB?

Mike Keith believe the JDO is out of date . Then what role of JDO in ObjectDB? Will our codes with JDO be out of date ? Due in part to some of the failures of the EJB persistence model, and some ... of JDO by ObjectDB is currently the most extended and up to date among all the JDO implementations

Setting temp directory location in ObjectDB

operation only i.e. Date Modified time in the microsoft explorer window For example, parentfolder ... ;           Date Modiefied parentfolder   ... ;   Date Modiefied parentfolder          

can't get HashMap out of the database

Fields: @Id @GeneratedValue Long id; private String name; private Date signingDate; private HashMap ... = name; this.signingDate = new Date (System.currentTimeMillis()); map.put(name, signingDate.toString ... object is: @Embeddable public class Guest implements Serializable { private String name; private Date

JPQL JOIN FETCH Error

publishers left join fetch metadata.contributors contributors left join fetch metadata. dates dates left ... metadata.contributors LEFT JOIN FETCH metadata. dates LEFT JOIN FETCH metadata.types LEFT JOIN FETCH

How to use JOIN FETCH?

. Date ; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.persistence ... ; @OneToMany   @MapKeyTemporal(TemporalType. DATE )   private Map addressHistory = new HashMap ... ; }   public void addAddress( Date start,Address address) {    addressHistory.put(start

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

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

Roadmap - no progress - any plans - transparency?

. Unfortunately we cannot provide a date for implementation of specific feature requests. ObjectDB 2.x ... release date for ObjectDB 3.0 yet, but it will not be before 2016. We understand that some customers ... features is the problem, and this why we will not commit to future dates . support Support

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

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

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",   

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

Unable to persist fields in subclass

(LocalDate date ) { if (dateOfBirth == null) { dateOfBirth = new SimpleObjectProperty ( date ); } else dateOfBirth.set( date ); } public ObjectProperty dateOfBirth() { return dateOfBirth; } } package miscTests

Problem with entities detection

.io.Serializable; import java.util. Date ; import java.util.List; import javax.persistence.Basic ... _nacimiento") @Temporal(TemporalType. DATE ) private Date fecha_nacimiento; private int[] telefonos

@Transient

Hello, I have a persistent class which looks something like this: @Entity public class Test {     private String string;     private Date date ;     @Transient     private boolean test;       

Extending model by "common entity"

{     private String createdBy;     private Date createdAt;     private String modifiedBy;     private Date modifiedAt

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

update(){ System.out.println(" ********* Called update() **********"); lastUpdatedDate = new Date ... ) line: 971 SimpleObjectDBTest$BaseEntity.__odbSet_lastUpdatedDate(SimpleObjectDBTest$BaseEntity, Date

schema update procedure

on the client side is to synchronize all the persistable classes by sending the up to date schema of all these classes to the server. Therefore, the server should have the up to date schema as soon as

Speeding up reporting queries with size() on list

Hi, I'm working on some reporting stuff in our application. One of few different reports should include activity on last modified objects. The query for now looks like this: select date (insp ... Inspiration insp order by date (insp.lastModificationDate) desc insp.description is normal String

Calculating age in query?

Hi! I've got an issue: I have a birthdate as java.sql. Date and a separate field int age. However, of course the age is not accurate because it gets set only once. So what's the best bet (JPA ... ? thanks! Alex quasado Alexander Adam You can use a JPQL query with a simple date comparison: SELECT p

Composite indexes

(kitchen, bedroom etc.) Date lastModificationDate; // date of last modification Float rating; //users

Is there an administration tool with which I could create extra indexes?

it using the  @index  annotation in your entity class. Open the database with the up to date ... ) to build the new index. Step 2 may be skipped if you run the Doctor (step 3) with your up to date classes in the classpath. support Support

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

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 JDO Manual

that keeping two manuals up to date is a lot of work, but I would suggest that you a least make ... ) for more documentation? This is one of the problems with JDO today: No new books and merely no up to date resources. You can either use DataNucleus documentation or the JDO specification pdf. If up to date

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

ObjectDB 2.3.6

LEFT OUTER JOIN. Fixed GROUP BY DATE (...) - merging AM and PM into the same date .