About Persistence Context

forum_thread

Spring + Maven + persitence.xml

Hi, I tested ObjectDB embedded and it is really fast! Everything worked out of the box. Maven: <dependency>    <groupId>com.objectdb</groupId>    <artifactId>objectdb</artifactId>    <version>2.4.3</version>   </dependency> Persistence.xml ... > </dependency > Persistence.xml <persistence-unit name = "TEST" transaction-type = "RESOURCE_LOCAL" ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @Index(members={"x","y"}) Then when I run the following query:     TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p where p.x <= :x and p.y >= :y",         Point.class); I get the exception at the end.  I do not get an exception if I: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

ArrayIndexOutOfBoundException

Hello, we got this exception when using ObjectDB: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

ObjectDB 2 JDO Manual

The new ObjectDB Manual describes how to use ObjectDB 2 with JPA. An additional manual that focuses on using ObjectDB 2 with JDO can help JDO users. But since writing a new manual and then maintaining two similar manuals, one for JPA and the other for JDO requires sufficient effort, this will be done only if there is sufficient demand.  ... that supports JDO, now also supports JPA. The most popular persistence frameworks (Hibernate, EclipseLink) support JPA but do not support ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

EOFException

Not sure if you'll be able to help with this but I've had an application get into a state where it cannot access anything from the database - queries fail with the following exception: ... the following exception: [ObjectDB 2.3.3_06] javax.persistence.PersistenceException Failed to read from file ... EntityNotFoundExceptions: [ObjectDB 2.3.3_06] javax.persistence.EntityNotFoundException Entity is not found: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Cascading makeTransient

Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is that we read the objects from the DB (many and large objects of class A) and then keep in the application cache only some embedded parts of those objects (let's call them class B). This application cache should work independently on the DB as if it contained transient objects. ... state is relevant only to instances of entity classes (persistence capable classes) and not for embedded objects, which are considered ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

ODB should auto-restart if it detects it's necessary

Hi! I find very tricky the need to restart ObjectDB server after schema modifications in a distributed environment. Moreover, not doing it does sometimes trigger ugly errors, which mean application downtime. It might be very useful to have an additional feature (that could be enabled/disabled in objectdb.config) that each time ObjectDB detects a schema change that requires restart, it should automatically restart itself. This way we save a lot of headaches from our dev. ops. Currently we have to manually do: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Java 6/7 Performance Comparison

Hey, I've been using ObjectDB for a small scale home project to gain some familiarity before proposing it in a commercial project at work. What I've noticed though is that when using objectdb in embedded mode based on the console tutorial, there seems to be a bit of a performance gap running the same code between Java 6 & 7 Tracing it through I can see the bottle neck seems to be at the creation of the entity manager and I was wondering if there are any additional configuration options I may have missed while running under java 7. ... ; EntityManagerFactory emf = Persistence . createEntityManagerFactory ( ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Performance problem

Hi, we have a strange performance problem with ObjectDB 2.5.3_01 and JBoss 7.1.1. We have two ObjectDB databases on one ObjectDB server. Production database is running 5-10 times slower than test database. Their size and number of records are almost identical. When running production database in separate test environment its speed is very good. We did a performance analysis on our 2 linux servers one running JBOSS and other running ObjectDB. - CPU utilization of JBOSS server is max 5-10% (per core)... EntityManagerFactory emf = Persistence . createEntityManagerFactory ( ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

alter table

Hi: After a table built by real data, how to alter table structure, such as: alter table add column ... alter table add index ... TIA ... "main" [ ObjectDB 2.2.9_04 ] javax. persistence . RollbackException Failed to commit transaction : ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...