About date

api-jpa

javax.persistence.criteria.Expression

Type for query expressions.(Interface of JPA)

 
issue

ObjectDB 2 JDO Manual

The new ObjectDB Manual describes how to use ObjectDB 2 with JPA. An additional manual that focuses on using ObjectDB 2 with JDO can help JDO users. But since writing a new manual and then maintaining two similar manuals, one for JPA and the other for JDO requires sufficient effort, this will be done only if there is sufficient demand.  ... I understand that keeping two manuals up to date is a lot of work, but I would suggest that you a least make the Quick ... problems with JDO today: No new books and merely no up to date resources. You can either use DataNucleus documentation or the JDO ...

 
manual

Comparison in JPQL and Criteria API

Explains how comparison operators can be used in JPQL queries, including in comparing null values.... the content rather than the identity. Date values can be compared by using any comparison operator. Equality operators (=, <>, == , != ) on date values in queries follow the logic of equals , comparing the content ...

 
forum_thread

Transaction isolation support?

I am looking at using ObjectDB for our new project, and its looking good so far. But I have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks when the fetch start? Martin   ... You can use refresh  to get an up to date version of an object. To avoid using the same object by different ... can always refresh the User instance to get up to date content. ObjectDB Support ObjectDB - Fast ...

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

 
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

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

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

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

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