About or

  • Search for either of the two terms with uppercase OR. For example, cats OR dogs.
forum_thread

Unable to execute update query

Hello! I'm trying to do an update query via the explorer to set a new field value for around 400k objects. UPDATE Position p SET p.originalData = null This exception raises when I try to do it: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

I have a simple task to validate the sample code will switch over to the slave database when the master is unavailable. I simulate the master unavailable by stopping the master server; which generates the following exception below. What am I doing wrong? It appears the connection manager fails to try the second URL in the list: objectdb://10.9.2.15:9998//10.9.2.15:9999/test.odb;user=admin;password=password Thank you in advance. ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

Multithreading Test and Deadlock

I move on to testing the multi threaded part of ObjectDB. From the same code (MyMain.java), I set the thread count from 1 to 4 and not only do I found it's slower overall (each thread only needs to insert 250K entities) but the threads are stuck with a deadlock. All threads share the same EntityManagerFactory but they have their own EntityManager. The stack trace is attached. ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

Integration with Java EE (JPA 1.0)

ObjectDB can be used in both Java EE and Java SE by using application managed EntityManager. Support of container managed EntityManager and integration with the JTA (Java Transaction API) is not implemented yet.... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

New Java 8 (JDK 1.8) Collection Methods

ObjectDB version 2.5.5 (and above) supports Java 8 (JDK 1.8). Tracking changes to collections and maps using some new Java 8 methods is currently not fully supported. The main known issue is that orphan removal does not happen as a result of removing a reference to an object (which becomes an orphan) using the new methods: removeIf(predicate) and remove(key, value). ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

UserException - Object User#2 belongs to another EntityManager

Hi! Scenario's steps: 1. User goes to his profile, a JSF page. 2. @RequestScoped CDI bean UserDataB loads the current user of the session at each request, by using @Stateless bean UserC#findUserById(Long id) 3. JSF page's @RequestScoped CDI bean AnotherB loads trades of that user, by using @Stateless bean TradesC#findTradeByClient(User u). ### UserC and TradesC have their own @PersistenceContext EntityManager with the same unitName. ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

Online Backup

An ObjectDB database file can be backed up simply by copying the file (with the associated recovery file if exists). This should only be done when the database is closed. Online backup will enable backup also when the database is open and in use.... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

[Explorer] Executing Queries

The new Explorer of ObjectDB 2 supports retrieval of database objects by classes and navigation. Retrieval of database objects by executing queries should also be supported. This is one of the features that have been supported by the old Explorer of ObjectDB 1.It has been temporarily removed due to incompatibility with the new ObjectDB 2 code base.... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

Entity is not related to ObjectDB, but i get exception from ObjectDB

Here is the description of the problem we are facing:
We have an entity DialogActionNew which previously was located in ObjectDB and recently has been transferred to PostreSQL. We are using ORM Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive another entity - DialogNew, which has an exception: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

InternalError on multiple AND and JOIN Query

Hi, Using objectdb 2.2.8_06. Running the following query: SELECT DISTINCT $1 FROM CDI $1 JOIN $1.contactDetails $2 JOIN $2.addresses $3 JOIN $3.attributeList $4 JOIN $2.phoneNumbers $5 JOIN $5.attributeList $6 WHERE ((($4.name='suburb') AND ($4.valueAsString='Los Angeles')) AND (($6.name='areacode') AND ($6.valueAsString='310'))) Getting: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...