About date

forum_thread

JSON serialization and __odbHidden members

Hi.. Building a REST API (Jersey-based one) I noticed that object object I serialize to JSON has a clone field with "__odbHidden" suffix, e.g.there's  "id" and "id__odbHidden" is also (unwantenly) present with the same value. In general, we can annotate fields to include/exclude them from JSON serialization, but since these fields are not declared in my classes, I have no idea how to tell marshaller to avoid them. ... "lastActivity": { "IP": "127.0.0.1", "date": "2015-10-30T17:25:55.359+03:00", "ua": "Mozilla/5.0 (Windows NT ... { "IP": "127.0.0.1", "date": "2015-10-30T17:25:55.359+03:00", "ua": "Mozilla/5.0 (Windows NT ... "regActivity": { "IP": "127.0.0.1", "date": "2015-10-30T17:25:55.359+03:00", "ua": "Mozilla/5.0 (Windows NT ...

 
forum_thread

schema update procedure

Is there a specific procedure that we should follow when making schema updates? ... 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 the database is opened. Thank you for reporting ...

 
forum_thread

java 8 LocalDateTime is not working in query

My entity class has a field of type java.time.LocalDateTime. I'm able to persist entities and I'm able to query without datetime field in where clause, but with datetime in where clause doesn't return anything and not exception.   ... ( "SELECT t FROM Test t WHERE t.date BETWEEN :startDate AND :endDate ORDER BY t.date" ) ; query. setParameter ( "startDate" , ...

 
api-jpa

javax.persistence.criteria.Expression

Type for query expressions.(Interface of JPA)

 
forum_thread

significant performance decrease

we are using objected in embedded mode (on OS X and WINDOWS). The database increased now to around 400000 entities of one class (database file size around 1.5 GByte). The response time of standard queries increased with this database size to an unacceptable rate (several seconds compared to around 30% when the number of entities was just half of the current). We tried to optimize the cache settings, current objectdb.conf is: <!-- ObjectDB Configuration --> <objectdb> ... Integer associatedFileCurrentVersion ; public Date associatedFileLastModification ;   @ Index public String classIdentifier ; public Date created ; // HS-778 public Map<String, String> ...

 
forum_thread

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

We are using ObjectDB 2.5.1_04. The following JPQL query causes an internal exception: SELECT COUNT(r) FROM RecordingMetaData AS r WHERE ((r.mapFromCli LIKE '192.168.10.13%' ESCAPE '\')) The exception: ... private Long version ;   private Date startDate ; // Date: date part of startDateTime private Date startTime ; ...

 
forum_thread

_PersistenceException: Type is not found on getSingleResult.

Greetings. I'm new to ObjectDB. I'm using an ObjectDB local database for a Java SE standalone application and i'm having issues querying for an object of this entity: ... @ Temporal ( TemporalType . DATE ) private Date fechaNacimiento ;   private String primerNombre ; ...

 
forum_thread

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

Hello, I have composite index, and it was working fine, but now I need to add more features to the software and I need to throw more indexes in there. I wanted to know what's the best way to do this. 1. Have some admin tool CREATE INDEX..... ON a.b or 2. add more @Index to the object entities. in case of #2, would ObjectDB auto-reindex all existing data? ... class. Open the database with the up to date class in the classpath in order to update the schema. Run ... be skipped if you run the Doctor (step 3) with your up to date classes in the classpath. ObjectDB Support ...

 
manual

Paths and Types in JPQL and Criteria API

Explains how to use object expressions (path navigation, type) in JPA/JPQL.... to values of simple types (number, boolean, string, date). Simple type values are more useful in queries. They have special ... maps and values of simple types (number, boolean, string, date). For a path expression to be valid the user defined persistable ...

 
forum_thread

@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; // getters/setters } When I persist the class the transient 'boolean test' is stored in the database, maybe I am doing it wrong but I expect... private String string ; private Date date ;   @ Transient private boolean test ; ...