ObjectDB Database Search

51-100 of 200 results

Use of sequences to generate field values in JDO

I'm trying to use sequences to set field values in JDO .  I want to do this in XML metadata to avoid use of annotations. This is an example of what I'm trying: When the code is run I get the message:  No definition of generator 'audit_seq' (referenced by field com.spiffymap.sealog.model

Inconsistent return types from JDO query

I'm running a JDO query which returns the sum of an int field.  The return type of the Object produced by the Query is inconsistent - sometimes Integer, sometimes Long.  Using setResultClass(Long.class) has no effect. sjzlondon Steve Zara The type of a sum expression depends on the type

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

is expected: Exception in thread "main" [ObjectDB 2.2] javax. jdo .JDOUserException Failed to find multiple entities (error 636) at com.objectdb. jdo .PMImpl.getObjectsById(PMImpl.java:512) at com.objectdb. jdo .PMImpl.getObjectsById(PMImpl.java:535) at com.objectdb.test.bug.T296.main(T296.java:21

Remove not working

showing a true failure? import javax. jdo .JDOHelper; import javax. jdo .PersistenceManager; import javax. jdo .PersistenceManagerFactory; import java.util.Properties; public class Test{ private static ... (){ Properties properties = new Properties(); properties.setProperty("javax. jdo

@FetchGroup in JPA similar to JDO

I was checking what's new in different JPA implementation on the market and found quite interesting two features. First of those features is described in this ticket. It's similar to FetchGroup from JDO . It works like this. First you specify attributes to fetch from database: @FetchGroup(name

Issues with JDO Casting & Full Qualified Names

to be supported by JDO . Try: package com.test; import java.util.HashMap; import java.util.Map; import

JOD problems regarding detachCopy()

Hi, I am new to JDO and trying to get the PersistenceManager.detachCopy functionality working. I ... .setProperty("javax. jdo .PersistenceManagerFactoryClass", "com.objectdb. jdo .PMF"); properties.setProperty("javax. jdo .option.ConnectionURL", "objectdbtest2_db.odb"); PersistenceManagerFactory pmf

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

the CultureRqst leads to the following exceptions: [ObjectDB 2.2.8_08] javax. jdo .JDOUserException Type com.epimss ... .objectdb. jdo .PMImpl.makePersistent(PMImpl.java:232) at javax. jdo .PersistenceManager$makePersistent ... javax. jdo .annotations.PersistenceCapable @Bindable @PersistenceCapable class CultureRqst { // Common

Pessimistic lock

Dear Sir or Madam, In the past we used the default Options in the JDO 1.0. See below for reference: javax. jdo .option.Optimistic=false javax. jdo .option.NontransactionalRead=true javax. jdo .option.NontransactionalWrite=false javax. jdo .option.RetainValues=true javax. jdo .option.RestoreValues=false Now

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax. jdo .PersistenceManagerFactoryClass","com.objectdb. jdo .PMF"); prop.setProperty("javax. jdo .option.ConnectionUR","local.odb ... for File PMF.class. I had added the zip file jdo _2.2.zip as source. Please help need to complete assg in

Failed to read DB file while online backup is running

:1503) at com.objectdb. jdo .PMImpl.getObjectById(PMImpl.java:465) ... 9 more Caused by: java.lang ... .java:694) at com.objectdb. jdo .PMImpl.getObjectById(PMImpl.java:449) ... 9 more       ... ;   com.objectdb. jdo .JdoQuery.onObjectDBError(JdoQuery.java:1115)     com

Eclipse plugin problem (using ObjectDB as a separate bundle)

in the following stacktrace: [ObjectDB 2.2.8_01] javax. jdo .JDOUserException Attempt to persist ... .EMImpl.commit(EMImpl.java:277) at javax. jdo .Transaction$commit.call(Unknown Source) at org.codehaus ... St Clair Clarke In JPA (unlike JDO ) persist is not cascaded automatically to referenced objects by

Indexing a field results in internal Exception

I have an application that I have been converting from JPA/MySQL to JDO /ObjectDB and I have hit ... the way, why do you convert the application from MySQL/JPA to ObjectDB/ JDO and not to ObjectDB/JPA ... .g(QRR.java:244) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb. jdo .JdoQuery.execute0(JdoQuery

evictAll() behavior

in the JDO spec? Cheers, Andrew andrewmcveigh Andrew McVeigh Refreshing managed objects in JDO ... () You have to invoke refreshAll inside a transaction, because according to the JDO specification ... with no enhancement as an extension to JDO - but it is less efficient and has some limitations. For example, strong

Setting temp directory location in ObjectDB

.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax. jdo .PersistenceManagerFactoryClass","com.objectdb. jdo .PMF"); properties.setProperty("javax. jdo .option ... .setProperty("javax. jdo .PersistenceManagerFactoryClass","com.objectdb. jdo .PMF"); properties.setProperty

2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object"

in JDO to represent a combination of class + primary key and therefore it seems a bit strange to use ... ; StringIdentity is missed. This could happen if more than one version of these JDO classes is used in ... that I could change all my JDO classes from @Id private StringIdentity id; to @Index private String

Running ObjectDB on a node that does not have internet connectivity

.o.EXT. (EXT.java:71) at com.objectdb. jdo .PMImpl.getExtent(PMImpl.java:2059) at peoiws5.track.server ... The stack trace indicates that an attempt to access the JDO dtd file (in order to verify a package. jdo file) has failed. You are probably using an old beta version, in which the dtd file is not

Can I Disable the Creation of the "log" Directory?

thread titled, "Sample JDO Architecture for Follow Up Questions".   In the objectdb.conf file ... created by this test program?     import javax. jdo .JDOHelper; import javax. jdo .PersistenceManager; import javax. jdo .PersistenceManagerFactory; import java.nio.file.Files; import java.nio.file

Navigation to Collection Elements

;individual elements (in JPA & JDO ) ? e.g.: x.list.get(10) x.map.get("key") x.list.get(10).get("key ... entity object (or persistent object in JDO ) in both JPA and JDO , assuming the owner EntityManager ... but it is not recommended, because it is not JPA/ JDO portable (it is an extension of ObjectDB

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

the configuration which we are using to define the index as follows jdo        ... . jdo file. It was written long time ago so please suggest me if i need to delete one ? But i ... steps 1. Update the package. jdo with an index defined 2. Convert the old odb file 3. Connect

ObjectDB is opening too many sockets

using the JDO method  setMaxPool . support Support Sorry, I did not get that You can limit the size of the connection pool (the default in ObjectDB is currently 50), by using the JDO method  ... .put("javax. jdo .option.MaxPool", "10");     EntityManagerFactory emf =    

Cascading makeTransient

after the containing objects are garbage collected. support Support Yes, that would help us as we use only JDO . jakab ... .onObjectDBError(OBC.java:1503) at com.objectdb. jdo .PMImpl.makeTransient(PMImpl.java:1556) at com.objectdb. jdo .PMImpl.makeTransient(PMImpl.java:1597) at eu.extech.serverImpl. jdo .JDOConnection.makeTransient

Optimistic Locking

. Do you have a simple test that demonstrates optimistic locking working? dbaker David Baker The following JDO 2 ... com.objectdb.example; import java.util.*; import javax. jdo .*; import javax. jdo .annotations.*; public ... a new database: Properties properties = new Properties(); properties.setProperty( "javax. jdo

ObjectDb.conf Defaults

entries under "General".   import javax. jdo .JDOHelper; import javax. jdo .PersistenceManager; import javax. jdo .PersistenceManagerFactory; import java.nio.file.Files; import java.nio.file.Path; import ... ()); Properties properties = new Properties(); properties.setProperty("javax. jdo

javax.transaction.Synchronization with Java SE 10.0.1

;at java.base/java.lang.Class.forName(Class.java:374)     at javax. jdo .JDOHelper$18.run ... (Native Method)     at javax. jdo .JDOHelper.forName(JDOHelper.java:1941)     at javax. jdo .JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1152

Storing Images

[] fields. byte[] is a supported persistable type in both JPA and JDO and can represent a blob ... , because the JDO /JPA spec does not include them.  so, they would need to be separate from objectdb, and ideally open source, or you would have no chance of changing JDO /JPA products if required later

Query vs Extent for retrieving data

: javax. jdo .Query q = pm.newQuery(PositionReportManagerBean.class, ""); Collection c = (Collection)q ... on the code in the posting instructions  (but possibly using JDO ) that demonstrates this issue ... = new ArrayList (); javax. jdo .Query q = pm.newQuery(PositionReportManagerBean.class, ""); Collection c

Refreshing a dirty object causes permanent JDOOptimisticVerificationException

example: package test; import com.objectdb.Enhancer; import javax. jdo .JDOHelper; import javax. jdo .JDOOptimisticVerificationException; import javax. jdo .PersistenceManager; import javax. jdo ... only the refresh method in JDO (not JPA). We highly recommend switching to JPA, as it is more modern

OEM: Too many persistable types (>10) - exceeds evaluation limit (error 1011)

_03] javax. jdo .JDODataStoreException Too many persistable types (10) - exceeds evaluation limit (error 1011) at com.objectdb/com.objectdb. jdo .JdoQuery.compile(JdoQuery.java:734) I ... . [ObjectDB 2.7.2_04] javax. jdo .JDODataStoreException Too many persistable types (10) - exceeds

Type xxx is not found (error 301)

is whether there is a JPA equivalent of the JDO getExtent() method? dmoshal David Moshal Your observation is correct ... of JPA for JDO extents. Alternatively, if you want, you may use JDO from JPA application by obtaining ... ) 3) use jdo from jpa - is there a performance penalty for unwrapping PersistenceManager.class

"Attempt to lock a non entity object" error

. This is how it should work in JPA and it is different from JDO . A new build (2.4.7_15) enables now using JDO behavior ... the new build and tried the code above that uses a JDO Transaction with beginTransaction(), lock(), and rollback() on the same JDO Transaction, and then beginTransaction(), lock(), and rollback

makeTransient() not working on Embedded class

Hi, I am using JDO and calling PMimpl.makeTransient(object) on an object which has a class of type ... .objectdb.o.JDE.f(JDE.java:52) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1503) at com.objectdb. jdo .PMImpl.makeTransient(PMImpl.java:1556) at com.objectdb. jdo .PMImpl.makeTransient(PMImpl.java:1597

object creation during pmf.getPersistenceManager()

instances for all classes declared in package. jdo .   Could You explain why? we are not even sure ... Support Hi I know that default constructors should be light, even in JDO spec it is mentioned as I ... it could be better to generate constructors with argument with type from vendor or jdo domain

ID format in objectdb 2.x for JDOHelper.getObjectId

JDO and the object which I am getting is om.objectdb.OID not LongIdentity. I tried adding private @Id @GeneratedValue long id; but i think it only works in case of JPA not with JDO . Do you the any ... also with JDO , because you may mix JPA with JDO when using ObjectDB. I think that in pure JDO

Changing existing objects from Entity to Embedded

Hi, I realised that I have a mistake (from application logic point of view) in one of my JDO ... :82)   I thought that simply changing JDO metadata is not sufficient. Should it be sufficient btw ? So I left these classes NOT embedded in JDO , introduced copies of these classes in

locks on pure query activities

(JpaQuery.java:719) - locked (a com.objectdb. jdo .PMImpl) at com.agile.hummingbird.API.handleQuery(API.java ... .jpa.JpaQuery.getResultList(JpaQuery.java:719) - locked (a com.objectdb. jdo .PMImpl) at com.agile ... ) - locked (a com.objectdb. jdo .PMImpl) and: java.lang.Thread.State: BLOCKED (on object monitor) at com

Server closes if large query runs out of memory

occurred during JDO deletion query, and the temp threshold was set and was low (64mb).   ... understand that JPA bulk delete doesn't involve any object retrieval, whereas perhaps JDO deletion does ... You are right. DELETE queries are implemented in ObjectDB differently for JDO and JPA: In JDO : a SELECT

Dirty checking

the database. ie: which objects, and which collections of objects, have been dirtied. in the jdo api there is: void postDirty(InstanceLifecycleEvent event) http://www.objectdb.com/api/java/ jdo /listener ... methods, as you mentioned. You may also use JDO methods (even if your application uses JPA

OutofMemory error with Object DB 2.0

.evictAll() after commit, it does not make difference. All the entity classes in my package. jdo ... PersistenceManager instance (com.objectdb. jdo .PMImp) The application tries to persist records ... and this is the only blocking issue for our release. I am also attaching our package. jdo files (previous file used

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

a way to do that in JPA / JDO / something else ?   xirt Sylvain Actually you can specify specific fetch paths for specific operations using JDO fetch groups, which are fully supported by ObjectDB but not documented (you can find more details in the JDO specification). This ability

objectdb explorer in ver 2.2 and 1.0

Hi   In first step  I have evaluated JPA API now I'm testing JDO API and I'have spotted that object explorer has lower functionality than in ver 2.2 eg garbarage collector or xml import ... should only use ObjectDB 2.x. Notice that ObjectDB 2.x also supports JDO better ( JDO 2 instead of JDO 1). support Support

How to Persist a Map of beans to collections of beans?

Hello, I am trying to add a new persistable object to the package. jdo for persistence in ... at a loss for how to format the xml in the . jdo file for this object.  How does one persist this in package. jdo xml?  Thanks in advance for your help. -A cvtsc Dev Team In the package. jdo file

Why does ObjectDB duplicate classes from javax.jdo:jdo-api?

. To use the @Index annotation, I had to add a dependency to the  JDO API version 3.1 (old link: https://mvnrepository.com/artifact/javax. jdo / jdo -api/3.1). The code works just fine, but when I use a Maven plugin to detect duplicate classes and resources, it points out that both ObjectDB and the JDO API

auto-generated uuid fields

Hello, we're porting a JDO application to ObjectDB which uses uuid-hex generated values ... that it's part of both the JPA and JDO standards (JPA Generator.UUID_HEX and JDO value-strategy="uuid-hex ... have it so I guess it is only an extension of OpenJPA. However we are using JDO and it has been in the JDO

Freeze during save

.objectdb. jdo .PMImpl.makePersistent(PMImpl.java:241) - locked (a com.spiffymap.naviupdate.model.Repository) - locked (a com.objectdb. jdo .PMImpl) sjzlondon Steve Zara Could you please post a full thread ... . jdo .PMImpl.makePersistent(PMImpl.java:241) - locked (a com.spiffymap.naviupdate.model.Repository

com.objectdb.o.InternalException: null

.objectdb.o.LDR.E(LDR.java:470) at com.objectdb. jdo .PMImpl.retrieve(PMImpl.java:795) at com.objectdb. jdo .PMImpl.retrieve(PMImpl.java:811) at com.objectdb.o.PEI.getChildCount(PEI.java:110) at com ... .objectdb.o.LDR.F(LDR.java:536) at com.objectdb.o.LDR.E(LDR.java:470) at com.objectdb. jdo .PMImpl.retrieve

Unexpected exception (Error 990) com.objectdb.o.InternalException

) at com.objectdb.o.STM.E(STM.java:432) at com.objectdb.o.OBM.bP(OBM.java:919) at com.objectdb. jdo ... (OBM.java:919) at com.objectdb. jdo .PMImpl.bP(PMImpl.java:2267) at com.objectdb.o.OBM.bO(OBM.java:833 ... .objectdb.o.STM.E(STM.java:432) at com.objectdb.o.OBM.bP(OBM.java:919) at com.objectdb. jdo .PMImpl.bP

InternalException caused by OOM: Metaspace

.java:756) at com.objectdb.o.OMF.am(OMF.java:684) at com.objectdb. jdo .PMF.getPersistenceManager(PMF.java:559) at eu.extech.serverImpl. jdo .JDOConnection.persistenceManagerInit(JDOConnection.java:386 ... ) at com.objectdb.o.OMF.am(OMF.java:684) at com.objectdb. jdo .PMF.getPersistenceManager(PMF.java:559) at eu

ObjectDB 2.7.2_x Doctor Yields "Index Requires Rebuild" Always

% 70% 80% 90% 100% Index Errors ------------ [1] Index com.unilogical.moxydox.protocol.server. jdo ... .moxydox.protocol.server. jdo .JdoEntity[idLowercase] requires rebuild. - missing entries: 16 - extra entries: 16 [3] Index com.unilogical.moxydox.protocol.server. jdo .JdoImagePageBackground[checksum

Error 990 when querying a class with persistence-capable-superclass

(QRR.java:220) at com.objectdb. jdo .JdoQuery.execute0(JdoQuery.java:811) at com.objectdb. jdo .JdoQuery.execute(JdoQuery.java:720) at com.spiffymap. jdo .JdoDaoBase.count(JdoDaoBase.java:143) JdoDaoBase ... ? Could it be because of the superclass, as I guessed? Or a failure of run-time enhancement? RDBMS-based JDO