ObjectDB ObjectDB

Internal Website Search

81-90 of 200 resultsRefresh
63

First query before any of the object has been stored

I have some code that, before writing an object via ObjectDB makes a query to ensure the new object is different from what's already stored. The problem is that, before any instances of that object ... other persistence related exception. How can I know if any of an object has been stored
63

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I ... : 1. When not using mappedBy, like in example above, detached objects are visible even after closing em. 2. When using mappedBy in class B (this is the case in my code), detached objects from relation
63

EntityManagerFactory objects being locked during EntityManager creation

Issue Details : We've been observing lately an issue with ObjectDB wherein the EntityManagerFactory objects are being locked during EntityManager object creation. Please refer the below stacktrace ... wherein the EntityManagerFactory objects are being locked during EntityManager object creation. This is the normal behavior
63

Query can't see recently persisted object

does not appear to present a read consistent view of persisted objects within the same transaction. e ... . However if I call flush() on the EntityManager after the persist() the object will be found. Clearly ... the transaction. Is there a way of using or configuring ObjectDB to ensure read consistency of objects persisted
62

ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects

this class. If I load a NaturalPerson entity from the database, then add a new address to the object's "addresses" list and use EntityManager.merge(object) to persist it along with the new address ... "EntityManager.persist(object)" instead, only one Address entity is created (as expected). Am I
62

Changing existing objects from Entity to Embedded

-only, made a migration utility which read the original objects, converted them to the new classes and stored ... . Is the change of not-embedded to embedded supported by ObjectDB for existing objects? If it is, do I ... (entity classes) or embeddable. To use embedded objects you must declare classes as embeddable
62

How to define database structure and insert some initial objects from scratch

the initial database structure of our application? We know objectdb is all about objects and probably doesn't ... . That code, however, could be simple. Just build your entity objects and persist them. e.g. public class ... = emf.createEntityManager();         // Store 1000 Point objects in the database:         em
62

Embedding Managed Entities in Embedded Objects = bad idea

Discovered that you can't embed entities in embeddable objects if the entity is managed. Haven't tried embedding un-managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id
12

Sort of very large objects - out of memory

the following actions: 1) Create 5 persist threads which create and persist a large object in a loop 100 times each 2) Create 5 get threads which read 100 objects each in a loop based on object ... objects. This requires a fix, but meanwhile, adding a composite index can solve the problem: @Entity
12

New entity objects are duplicated on merge cascading

When merge is cascaded to a new entity object that has not been persisted ... to persist a reference to a non managed ..." exception, when the duplicated object is referenced from another new / dirty entity object by a reference with cascading persist disabled. The following test

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support