About Persistence Context

forum_thread

Foreign key constraint issue

Hi, I'm trying to create two tables (Parent and Child) with a foreign key constraint from Child to Parent so that when the parent is deleted all children are removed as well. Unfortunately, in one specific case that foreign key constraint doesn't apply and I can't figure out what I'm missing. The definitions of the classes are as follows: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

String Encoding Issue

Hi all Encounter a character encoding issue when i try to retrieve a String column containing Chinese character. Retrieve a String column on odb file.  em = emf.createEntityManager(); Query query = em.createQuery("SELECT fu FROM FarmUnit fu"); But, when try to print the value out as: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

Threaded Test - Failed to commit transaction: Unexpected internal exception

Hi I'm trying to create a simple producer-consumer queue scenario but am getting the followin exception: ... java. util . ArrayList ;   import javax. persistence . *;   import junit. framework . Assert ; ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Login Error (bad username 'admin' or password)

I am getting following error when i am trying to connect to server: [com.objectdb.o._PersistenceException: Login Error (bad username 'admin' or password)] with root cause com.objectdb.o.UserException: Login Error (bad username 'admin' or password) at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.HND.K(HND.java:210) at com.objectdb.o.SHN.K(SHN.java:208) at com.objectdb.o.HND.run(HND.java:132) at java.lang.Thread.run(Thread.java:662) Here is my connection string: ... Here is my connection string: 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

Server connection management

The server does not appear to release broken connections. My typical development pattern is to keep reloading my war file in tomcat until the permgen space runs out, and then I kill and restart tomcat. After a few days of this, the server stops responding, and I see the following in the server logs: ... be able to set the connection pool size by a property in persistence.xml : <properties > <property ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Exporting the data out of the ObjectDB

Hi, We are currently looking at ObjectDB for high performance / high volume transaction processing system. However we want to work on one of the aspects that is the data should be able to pulled out of the ObjectDB to some sort of Big Data File system or Relation DB for reporting / analytics purpose. ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Explorer in 2.3

First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive data and Strings. After playing with it for a while, here is a list of additional features I'd love to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy text to the clipboard or save to a file (csv, html, etc..). (There appear to be copy menu options, but I cannot get them to work.) ... > Set Reference... commands (also available in the context menu when right clicking a reference). Using copy and ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Enhancer problem

During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFactory, ie. ...   // connect to ObjectDB database 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

Problem on JPA Merge Entity.

Hello, I have a problem with the EntityManager.merge() function. I set a property value of an entity (statement) with an other entity (newSingleConstraint). newSingleValue is already persisted. I do this myself (no use of cascade because sometimes the newSingleValue is already in database).   The statement update don't throw exception. And when i try to reload statement the value i have set before is a null value. I check with the Explorer, the statement has a null value on the property and the newSingleValue is present.... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

"Failed to serialize instance" of Set problem

Hi, I'm trying to persists objects defined as follows: @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) public abstract class AbstractContainer { ...   @OneToMany(fetch = FetchType.LAZY, mappedBy="parent")   private Set<AbstractContainer> abstractContainers = com.google.common.collect.Sets.newIdentityHashSet(); } Got the following exception: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...