ObjectDB Database Search

51-100 of 200 results

Online backup with JDO

only JDO ? Will the above code still work for me if I arrange having an EntityManager upon my DB file? Or does some equivalent syntax work with JDO too ? Perhaps something like: persistenceManager ... am using only JDO ? Your suggested JDO query should work. support Support

ODB 2 JDO enhancement

. jdo file? This question relates to experiences with ODB 1, in which one has to: a) create a package. jdo , and b) run the Enhancer In my experience, using this with Tomcat, and running the enhancer in ... / @Entity) replace the XML metadata (e.g. package. jdo ). Enhancement is another issue. ObjectDB 2

Which version of JDO should I use with ObjectDB?

I have defined a number of JDO indexes on my persistent class, so would like to know which is the preferred version of JDO to use e.g. is it  jdo -api-3.1.jar? Thank you paul Paul Hudson ObjectDB 2.x uses JDO 2.2. support Support

JDO manual

Request for a new JDO manual, covering ODB 2. dmoshal David Moshal Please subscribe to the ObjectDB 2 JDO Manual issue. Because writing a new manual and then maintaining two similar manuals, one for JPA and the other for JDO requires massive work, this will be done only if there is a sufficient demand. support Support

Drop JDO support

In my opinion JDO is a legacy/deprecated technology. You should remove JDO support in favour of JPA. I think this would make ObjectDB to grow faster. tuille Alberto Otero ObjectDB already supports JPA and this is its main API (e.g. the manual focuses on JPA). We have no reason to drop JDO , as there are still ObjectDB users that use it. support Support

Sample JDO Architecture for Follow Up Questions

I am trying to finalize on my application's JDO and ObjectDB archieture.  I have done documentation survey (reading JDO books, studying ObjectDB's documents and forum) and have designed what I ... embedded mode using JDO (not JPA). * Database access needs to be super fast, like microsecond times

package.jdo validation error (Connection timed out)

.objectdb.o._JdoUserException: Failed to validate xml file \RTDLogger.jar#package. jdo : Connection ... .getPersistenceManager(); Can you please let me know if i need to change something in my package. jdo file

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

JDOQL Subqueries (JDO 2.1)

Subqueries (nested queries) have been added to JDOQL ( JDO Query Language) in JDO 2.1. This is the main feature of JDO 2.0-2.1-2.2 that is not implemented yet in ObjectDB 2. support Support

javax.jdo.JDONullIdentityException: The identity must not be null.

.removeChild(ContainerBase.java:1049) [...] Caused by: javax. jdo .JDONullIdentityException: The identity must not be null.         at javax. jdo .identity.SingleFieldIdentity.assertKeyNotNull(SingleFieldIdentity.java:92)         at javax. jdo

Enhancer API (JDO 3.0)

One of the new features of JDO 3 is a standard API for enhancement. Currently ObjectDB implements its own enhancement API . support Support

@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

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