About delete

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.  ... edit delete support ... edit delete carr.onstott ...

 
issue

Can't open replicated database

I have a database running in server mode on port 6136 on server1 and server2. Each server has a replicated copy of the other servers database. I try to open the replicated on one database for a query (just read, no update) but it fails with the error below. The code I'm using is (user & password has been deliberately removed): ... edit delete felixobjectdb ... edit delete felixobjectdb ...

 
forum_thread

Upgrade to Java 8 won't run

I've been using ObjectDB with Groovy 2.1 and Java 7 for nearly a year.  Today, I updated everything to the latest revs (Groovy 2.3.6, Java 1.8.0_25, and ObjectDB 2.5.7_05), and now my application fails when opening the database. It's dying on one of these lines:   emf = Persistence.createEntityManagerFactory (dbName)   em = emf.createEntityManager()   em.setFlushMode(FlushModeType.AUTO)   ObjectDB.em = em   ... edit delete greymatter ... edit delete support ...

 
forum_thread

JPQL keyword in entity - what to do?

Hi, I have a problem with entity that is using one of JPQL keywords as one of the fields. It's a 'type' field. When I try to build a query that looks for example like this: select new ResultData(p.type.name, count(p.id)) from Product as p group by p.type.name I got this exception: ... edit delete lwalkowski ... edit delete support ...

 
issue

Eager load Map

I'm having an issue eager loading a nested map. I've attached @ManyToMany(fetch=FetchType.EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ok. The attached code attempts to replicate the scenario. Its not an exact match but is the best I could come up with without replicating the whole system. The test creates an object, persists it to a db and re-loads it. The EntityManager is closed before accesing any fields. Finally the nested map is accessed and printed to screen. ... edit delete felixobjectdb ... edit delete support ...

 
forum_thread

TYPE Expression

Hi there! Trying to add a simple type expression with the criteria api like in your sample: cb.notEqual(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.TYW.writeElement(TYW.java:223) at com.objectdb.o.QRR.l(QRR.java:424) at com.objectdb.o.QRR.g(QRR.java:230) at com.objectdb.o.QRR.b(QRR.java:151) ... edit delete quasado ... edit delete quasado ...

 
issue

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

Please check the attached database file. When running the Doctor, I get   Global Value Errors ------------------- [1] Unexpected last index ID: -119 (expected -116) Page Content Errors ------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 (key 'bjjl') has 75 extra bytes   Both errors are not fixable. When creating a new db file with the Doctor, this file yields the same errors. Please advise.  ... edit delete lorenz2304 ... edit delete support ...

 
issue

Corrupt database page

Hello, we have encountered an issue, where a page of the database became corrupt. We are wondering now, if you know of any issues that can cause this problem. We would be grateful for your help. Best wishes, The BTC-ES team   ObjectDB Doctor [version 2.7.1_03] Copyright (c) 2017, ObjectDB Software. All rights reserved. ... edit delete btc_es ... edit delete support ...

 
issue

Page cache File handling produced an java.io.IOException: Negative seek offset

we get following exception when we execute a find() in a scenario, we can not readjust with an example.   Before the exception throws we get two outputs on std error: pos = -8192 length = 8192   The Exception: ... edit delete btc_es ... edit delete support ...

 
forum_thread

WebService : Failed to get reference value of field using enhanced method

Hi, I try to use objectdb from Tomcat Webservice without webservice it's works fine:   error: Failed to commit transaction: Failed to get reference value of field field persistence.PolicyEntity.policyString using enhanced method ... edit delete eugen-f ... edit delete support ...