About SET

forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... try build 2.4.7_08. Your test should pass with ID set across the hierarchy, but the retrieval should be adjusted: // ...

 
forum_thread

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). Can you explain the optimistic lock exception? ... application. In your last post FlushModeType.AUTO is set to the wrong EntityManager , i.e. to the one that is used to persist the ...

 
forum_thread

zip file or JAR manifest missing

I found the message: Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar Some of projects can read the DB, but others can not read or write the DB. ... You will have to adopt one of the solutions in #2 - set a persistence unit or use an alternative solution. For example, ...

 
forum_thread

JPA - ExceptionInInitializerError when creating EntityManager

EntityFactoryManager(emf) is successfully received but error at emf.createEntityManager Please see my code of fragment from my project. public class Main {        final private static Properties EMAIL_PROPS;      final private static String EMAIL_FROM;            static {  EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("tmpCLMSPU"); ... error occurred for getting this value from CLMS S/w then set it's      * default value as 40 minutes. ...

 
issue

Issue with UPPER ?

Hi, Assuming those queries which are all the same except the UPPER calls: ... ($4.name!=null). [Step 8a3f] Prepare an empty result set. [Step 8b] Filter the results of step 8a retaining only results that ...

 
forum_thread

Embedded in JDO metadata not working in objectDB 2.x ?

Hi, I am using JDO access to the database with the persistence defined in package.jdo XML metadata files. In those metadata files I have few persistence-capable classes which had extents in ObjectDB 1 (with an OID for every instance) and all other classes were embedded (so without extent and own OID) in those few peristence-capable ones. Example of JDO metadata: ... If it doesn't work you may have to set the class as entity again (just for the query) and then back to ...

 
forum_thread

JPQL keyword in entity - what to do?

Hi, I have a problem with entity that is using one of JPQL keywords as one of the fields. It's a 'type' field. When I try to build a query that looks for example like this: select new ResultData(p.type.name, count(p.id)) from Product as p group by p.type.name I got this exception: ... result of type 'pl.hplxtool.model.ResultData': cannot set value 'p.type.name' at com.objectdb.o.MSG.d(MSG.java:61) ...

 
issue

Unexpected Exception during commit

I'm testing code that otherwise has been working with a clean database. I have seen several examples of the following exception. It never seems to happen in the same place twice, though. If you can give me a hint as to what would internally cause this, I'll try to reproduce it. Carl   Bug Version: Priority: Normal Status: Fixed Replies: 5 Type:  Bug ...

 
forum_thread

Feature Request: Improved ObjectDB Explorer

ObjectDB explorer is mainly designed as database viewer, not editor. However, I think it can be improved to function as a capable editor also, and I think this will make ObjectDB an even better product. #1 2014-06-04 17:59 ObjectDB explorer is mainly designed as database viewer, not editor. However, I think it can be improved to funct ...

 
forum_thread

Memory leak with OutOfMemoryError exception

Hi, I'm new to using object databases. Currently I'm experience the following error: #1 2012-02-11 19:15 Hi, I'm new to using object databases. Currently I'm experience the following error: Except ...