About JPA

forum_thread

locks on pure query activities

analyzing the dynamic behavior we can see from the thread dump that a lot of our threads that are just doing simple queries show locks like these (question is: why there are locks and how could we get rid of that):   log1:   ... com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) - locked ... com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) - locked ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

ObjectDB with JRebel: copious 'Not Enhanced:' errors with EJBs

JRebel 6.5.1 ObjectDB-2.6.9_06 Glassfish4.1.1 (or Payara41 [163 full]] I appreciate that you are not responsible for compatibility with JRebel, but you might be able to provide some insight or feedback. Reported also to Zeroturnaround for JRebel here. When using JRebel I am getting copious server log output for nearly every @EJB on startup. Typical message is like: #1 2016-11-03 02:50 JRebel 6.5.1 ObjectDB-2.6.9_06 Glassfish4.1.1 (or Payara41 [163 full]] I appreciate that you are ...

 
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. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:695) at ... com.objectdb.o.QRR.f(QRR.java:132) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:686) ... 107 more The problem ...

 
release

2.4.7

... Version 2.2.4 Added support of JPA UPDATE and DELETE queries ( issue #11 ). Added support of ... javax.persistence.ElementCollection JPA annotation Defines a collection of instances of a basic type or ...

 
release

2.4.6

... Version 2.2.4 Added support of JPA UPDATE and DELETE queries ( issue #11 ). Added support of ... javax.persistence.ElementCollection JPA annotation Defines a collection of instances of a basic type or ...

 
release

2.4.5

... Version 2.2.4 Added support of JPA UPDATE and DELETE queries ( issue #11 ). Added support of ... javax.persistence.ElementCollection JPA annotation Defines a collection of instances of a basic type or ...

 
issue

NullPointer when accessing persistent field

I am afraid this is a large and complex example, and I do not encounter the problem in simple cases, therefore there is no example attached. I appreciate this may make the bug unreproduceable from your end.   ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
doc

java.lang.Throwable

The Throwable class is the superclass of all errors and exceptions in the Java language.(Class of java.langClass Throwable)

 
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 ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Redeployment in GlassFish - Failed to open file

Hi. I am facing a problem with the redeployment of the application in GlassFish. I can deploy my application in GlassFish for the first time and it works. Once I need to redeploy it after making some changes in the source codes, the following errors come up in the GlassFish Log. It seems that the database file is still in use. I have highlighted the cause by red color. How I can release the database file for redeployment? Every time, I need to stop the server, start it again and redeploy the application. it is very troublesome during development.... at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:404) at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:395) at ... EJB GuestFacade method public java.util.List edu.um.fcsit.jpa.ejb.AbstractFacade.findRange(int[]) javax.ejb.EJBException at ...