About object

forum_thread

Query all objects that implements a given interface - is that possible?

Hi, I am trying query one of my DB - for all object types that implements a given interface. TypedQuery<Signal_Interface> query = em.createQuery("SELECT bk FROM Signal_Interface bk", Signal_Interface.class); I got the following error.  I am not sure it is possible to do it - Any suggestions would be appreciated. Regards, EKK ... Hi, I am trying query one of my DB - for all object types that implement a given interface. ... = em. createQuery ( "SELECT bk FROM Object bk WHERE bk instanceof Signal_Interface" , ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity.   It would be very helpful if you can add a few information to the Exception. Maybe: The class of the Entity and the id (Field annotated with @ID), or just the String representation of the entity. ... the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
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. ... runs a NamedQuery: com.objectdb.o.UserException - Object 'com.pingushare.entity.p1.User#2' belongs to another ... manages its own space of managed objects, and a managed object of one EntityManager should not be used with another EntityManager ...

 
forum_thread

Why can't we persist an object with a field of type EnumMap in ObjectDB?

Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB? but it works fine for fields like = HashMap<EnumType,Double> Thanks EKK ... Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB? but it works fine for ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

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

Hi from Spain! We're evaluating ObjectDB and we have some questions: - How can we create the initial database structure of our application? We know objectdb is all about objects and probably not need initial structure like tables, but how can we populate some "tables" with initial data from a script? In SQL world we have scripts like "insert into..." - Can we use main objectdb.jar library as jdbc driver for ETL software like Kettle? How about migrating data from another database system? ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

embedded objects marked final not persisted.

Discovered that embedded objects marked final are not persisted. I'm not exactly sure why that should the case. Is this a bug?     ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
issue

New entity objects are duplicated on merge cascading

When merge is cascaded to a new entity object that has not been persisted yet - it becomes persisted twice. This was demonstrated by a Java EE application in this forum thread but may be reproduced also in a simple console test case: ... When merge is cascaded to a new entity object that has not been persisted yet - it becomes persisted twice rather than ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Too many objects for this ObjectDB Edition

Hi, I have been encountering an error when my odb file is larger than 512kb "Too many objects for this ObjectDB Edition." I haven't been able to find any info about this online and was wondering if anyone has encountered a similar problem. I had been using an older version of ObjectDB but have switched to a newer version and am still getting the error. Any help would be much appreciated, Thanks. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Problem with merging / persisitng objects with @Embeddable field

Hi, After migration to version 2.4.2_01, I have noticed a strange problem with persisting object with field that contains @Embeddable object. Please check attached exception. Relation between entities looks like this: ... 2.4.2_01, I have noticed a strange problem with persisting object with field that contains @Embeddable object. Please check attached exception. Relation between entities ...

 
forum_thread

impossible to drop a table with 50 million objects

when trying to execute in explorer (max heap size 1GByte) delete from LogEntry l it comes up with a Java heap error after 20 minutes of executing. How to empty such a table ?     ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...