About SET

forum_thread

Degrading performance overtime

hi, We have an application that uses embedded odb database. We have configured odb to start at 50meg chunks and grow at 50 megs a time. as the files become larger between 1 and 2 gigs we start to see considerable degrade in performance caused internal objectdb locking: #1 2012-11-29 14:58 hi, We have an application that uses embedded odb database. We have configured odb to start at 50meg chun ...

 
forum_thread

Error 613 - i cant put a list<Athlete> into a Squad object

hey guys Im a swiss student and my english is not that good and ive never posted in your forum, so thats why im sorry if im doing any mistakes, but i have big trouble, because ive to get this straight till end of week. i uploaded also all classes but if u see the problem in the main problem field the classes are copied after the problem description. the structure: ... @OneToMany(cascade=CascadeType.ALL). Set global automatic cascading persist . See the Storing JPA ...

 
forum_thread

InternalError on query of empty database

Hi, I have reasons for sometimes trying to query the database before anything has been created. The problem is the database throws a InternalException when that happens. Is it possible to throw something that identifies that that is the issue, say something like "MissingSchemaException", ie something that clearly shows its because no data of that type has been added? This just makes the exception catching cleaner. Thought thinking about it, it probably needs to be a JPA exception, maybe something like javax.persistence.EntityNotFoundException? ... I'm now getting an empty set returned on empty database. Thanks!!!! ...

 
forum_thread

ObectDb 2.3.6 in OSGi environment

Hello, I'm trying to use ObjectDb within OSGi bundles. I have one bundle for db accens which uses ObjectDb and another bundle which includes the POJO models. Everytime I start in plugin evironement i get an PersistenceException, because my POJO not found. If try the same test in normal Java environment everthing works fine. Can you please advice? Thx Peter #1 2012-06-29 02:17 Hello, I'm trying to use ObjectDb within OSGi bundles. I have one bundle for db accens which uses Obj ...

 
forum_thread

Database Inconsistency or corruption

Hi, since a week I have been trying to find a solution to a strange problem. We are using ObjectDB 2.6.8_02 im embedded mode. The problem is that data gets lost when updating an entity. 1-) Background Consider Three entities: ObjectValue, Attribute and Value. ObjectValue has a one to many relationship to Attribute and Attribute has a one to one relationship to Value. ... referencedColumnName = "id"))   private java.util.Set<metamodel.Attribute> attributes = new ... Project project,       Set<metamodel.Attribute> attributes,       ...

 
issue

NullPointer on query

I'm getting a null pointer when running the following code: TypedQuery<ObjectDbMessagePayload> query = em.createQuery("SELECT m FROM ObjectDbMessagePayload m WHERE m.id = :id", ObjectDbMessagePayload.class); query.setParameter("id", msg.getId()); List<ObjectDbMessagePayload> loaded = query.getResultList(); Stack trace follows: ... the find method rather than the query. The application is set to try find and then revert to query is null is returned - this is legacy ...

 
forum_thread

Saving custom list which implements java.util.List fails

Hi, I'm evaluating ObjectDB for storing Objects modeled with Eclipse Modeling Framework (EMF) and encountered the following problem:   I took the Point-example from the tutorial and added a list-attribute which is declared as java.util.List but the actual Object MyList just extends ArrayList as shown below. ... how the list is implemented as long as you can get and set the list-elements as defined in the List-interface.   ...

 
forum_thread

First query takes 4+ minutes to complete

Hi, we are evaluating ObjectDB 2.5.1_04 in embedded mode hoping to replace SQLite in our application. We observed that in our case it takes on average more than 4 minutes to complete the first SELECT query that we run on the DB which contains about 320,000 records of a single type of object. SQLite in comparison responds within few seconds on average with the same number of records. We hope to receive your recommendation on how to improve this result with this post.   Test System ... one of the above query and time it until we get the result set of 50 records. To run the test again, we stop the appliaction and ...

 
forum_thread

What role is the JDO in ObjectDB?

Mike Keith believe the JDO is out of date. Then what role of JDO in ObjectDB? Will our codes with JDO be out of date? <quot #1 2011-05-20 02:57 Mike Keith believe the JDO is out of date. Then what role of JDO in ObjectDB? Will our codes with ...

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. #1 2012-12-07 19:29 I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them ...