ObjectDB Database Search

51-72 of 72 results

Query filter comparing Dates

= ClassWithDate.getCorrectDate(new Date()); PersistenceManager pm = getPMF().getPersistenceManager

Unable to persist TreeMap

import java.util.SortedMap; import java.util.TreeMap; import javax.persistence.Entity; //---------------- @Entity class Person { public SortedMap memberships = new TreeMap (); } //Person   import javax.jdo. PersistenceManager ; import javax.persistence.Entity; import javax.persistence

Getting java.lang.ArithmeticException: / by zero

HI, I am using ObjectDb 1.x and getting the following exception while calling the following code PersistenceManager pm = getPersistenceManager(); if (!pm.isClosed()){                       

JDO sequences from ORM file

below and persistenceManager .getSequence("com.spiffymap.model.UserSequence") returns null as

java.lang.UnsupportedOperationException

().begin(); em.unwrap( PersistenceManager .class).newQuery(License.class).deletePersistentAll(); em

Updating existing persistence entries

. Both Hibernate and ObjectDB have an old API ( Session in Hibernate, JDO PersistenceManager in

Index causes increased memory usage

transactions. When Does each PersistenceManager have its own 64mb processing cache? 

pm.newObjectIdInstance returns null

) bmcalist Brian McAlister The first thing that PersistenceManager 's  newObjectIdInstance does

javax.transaction.Synchronization with Java SE 10.0.1

Greetings, I am trying to get my app running on Java 10 (up to now it runs on Java 8) and with the latest version of ObjectDB it enhances fine, but during runtime when first trying to instantiate the PersistenceManager , it gives me the following error java.lang.NoClassDefFoundError

package.jdo validation error (Connection timed out)

; pmf.setMultithreaded(true);      PersistenceManager pm = pmf

How to change properties in urls2.xml?

PersistenceManager . Today, copying urls located in urls2.xml allow me to connect to my databases. Unfortunatly

JDOHelper.isDetached failure ?

Running this example code: public static void main(String[] args) { PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory("test.odb"); PersistenceManager pm = pmf.getPersistenceManager(); pm.currentTransaction().begin(); TestClass test = new TestClass(1234,"test"); pm

exception during online backup

more code: PersistenceManager em = pmf.getPersistenceManager(); Query backupQuery = em.newQuery("objectdb

Is there a function of "drop table" or "delete from table"?

;     em.unwrap(javax.jdo. PersistenceManager .class).getSequence("$auto

Type ... is not defined as an entity (@Entity is missing) (error 302)

.objectdb.jdo.PMImpl.makePersistent(PMImpl.java:232) at javax.jdo. PersistenceManager $makePersistent

Online backup with JDO

? Or does some equivalent syntax work with JDO too ? Perhaps something like: persistenceManager

Using multiple databases

at the same time but each database connection requires a separate EntityManager / PersistenceManager

ObjectDB 2.6.9

cache InternalException. Fixed JDO PersistenceManager 's  newObjectIdInstance to support classes

Query on primary key is slow when using 'IN'

, that could be even faster, but didn't find one. I thought PersistenceManager .getObjectsById

ObjectDB 2.7.0

PersistenceManager . Fixed an "Enhancement ... is old" bug on overriding persistent properties

Freeze during save

.tmp;drop"); PersistenceManager pm = pmf.getPersistenceManager(); pm.currentTransaction().begin

[ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

\\test.tmp;drop");         PersistenceManager pm = pmf