About not

forum_thread

mapping file is not being loaded

Hi, I am evaluating ObjectDB by using it with an in-house developed library in order to prototype its capabilities / performance. I am having a problem in that the in-house library in question reads a simple configuration file to determine available persistence units, and then bootstraps them using the JPA Persistance.createEntityManagerFactory() method and passing in the persistence unit name (again, obtained from the configuration file ). ... as a direct database path, so if the persistence unit is not found a virtual persistence unit is used and no error is produced. ...

 
forum_thread

Activation key causes database to not start

We had ObjectDB version 2.5.7_06, then we bought a server license, then we activated it today. We get an error when trying to start ObjectDB after adding activation in objectdb.conf. We initially thought it's because it was an old version, so we upgraded to 2.6.5_04, but without success. We still cannot start ObjectDB if we add the activation key in objectdb.conf. This is the ObjectDB log we get when trying to start ObjectDB with the license. What is to be done? Thank you. :) ... You can check whether ObjectDB is activated or not using the following query: boolean isActivated = ...

 
api-jpa

javax.persistence.metamodel.EntityType

Instances of the type EntityType represent entity types.(Interface of JPA)

 
issue

@PrePersist not working correctly

I have a method to calculate some values before persisting to the database. So i annotated it with @PrePersist. If i merge an object the annotated method get's called but all members are on their default values. I only tried it with new objects. So merge get's an object with id = null and therefore shoud behave like persist. (I always use merge) If i set a breakpoint before the em.merge(..) call the object is ok. Inside the @PrePersist method all fields are cleared.  Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...

 
forum_thread

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany Relationships. It should be load lazy but i didnt know why the query fetch all the Data. #1 2015-10-24 23:07 tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have bet ...

 
forum_thread

Merge with Parent/Child entities not possible

Can you please tell me why the following unit test ends with "[ObjectDB 2.5.7_02] javax.persistence.RollbackException"? #1 2015-01-13 07:36 Can you please tell me why the following unit test ends with "[ObjectDB 2.5.7_02] javax.persistence.RollbackExcep ...

 
forum_thread

A lot of ENT and SIV instances which are not cleared by GC

Hello. I have a JSF application (Glassfish 4, Java 8, ObjectDB 2.6.0). In some time the heap is getting 95% full with java.lang.OutOfMemoryError: GC overhead limit exceeded.  The first screenshot from VisualVM shows used heap during a 1000 requests stress test. The second shows that after this test there are many com.objectdb.o.ENT and com.objectdb.o.SIV instances. Why isn't it cleaned? I use simple EJB managers containing EntityManagers. On bean's PreDestroy and in servlet's i make entityManager.clear(); #1 2015-02-21 17:33 Hello. I have a JSF application (Glassfish 4, Java 8, ObjectDB 2.6.0). In some time the heap is getting 9 ...

 
issue

not possible to add an existing object to an array via explorer

when trying to add an existing object via context menu/add existing object an entering the id the attached message appears Bug Version: 1.04 Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...

 
forum_thread

orphanRemoval = true not working when CascadeType.REMOVE is disabled

Dear all, I have entities Employee and Address, their relation is defined (full example in attachment): @Entity     public static class Employee { ....         @OneToMany(orphanRemoval = true)         private Set<Address> addresses; I'm expecting, that removing Employee from db, addresses has been too, but I can see, that the Address is still: #1 2014-08-16 09:07 Dear all, I have entities Employee and Address, their relation is defined (full example in attachment): ...

 
forum_thread

JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums

Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @Enumerated(EnumType.STRING) @Column(nullable = false) @Index private MyEnumType enumField; And MyEnumType is defined as: public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call: #1 2013-10-02 04:31 Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN : ...