Problem with foreign keys on DB and JPA delete

2008-07-01 Thread Beniamin Mazan
I got foreign key on delete cascade constraint on my database for relation between Product and Subproduct CREATE TABLE product ( id character varying(36) PRIMARY KEY, ... ); CREATE TABLE voice_mail ( id character varying(36) PRIMARY KEY, flag_attribure boolean NOT NULL,

Re-using an existing jdbc connection?

2008-07-01 Thread justin_grunau
Is it possible somehow to pass an already-existing jdbc connection (with a transaction already in progress) into OpenJPA? Most of my application is written in OpenJPA but I have to implement a feature that involves being called with a transaction having started and with a database handle being

Re: Dependency of SQL-Statements

2008-07-01 Thread Michael Dick
Hi Josef, Minor clarification WRT update managers. ConstraintUpdateManager is the default UpdateManager for OpenJPA which probably explains why setting it was a no-op for you (sadly this may vary if you were using a rather old version of OpenJPA). Which version of OpenJPA are you using? Does the

Re: Getting error: java.lang.NoSuchFieldError: brokerPlugin

2008-07-01 Thread Michael Dick
Hi Eric, Do you have a stack trace for the RuntimeException? It would be interesting to see who is looking for the missing field. The OpenJPAConfigurationImpl class contains a field named brokerPlugin. In 1.0.2 the field is of type ObjectValue, in 1.2.0 it's been changed to type BrokerValue. The c

Getting error: java.lang.NoSuchFieldError: brokerPlugin

2008-07-01 Thread Eric Nelson
Hi all. My current project is using OpenJPA 1.0.2 and has been working beautifully for months now. I recently grabbed the newly released 1.1.0 version, dropped in the openjap.jar and serp.jar into my classpath, started the server and got: --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---

StackOverflow with simple entity

2008-07-01 Thread Alex Hartner
I am trying to persist a series of very simple entities using OpenJPA 1.1. I am able to persist up to 500 instances in sequence, however trying to add more then 600 entities using the example below fails with a StackOverflowError as shown in the stacktrace below. I have tested with with version

Dependency of SQL-Statements

2008-07-01 Thread Josef . Eisele
Hi all, we are using openjpa in two ways: 1) In our Geronimo Applicationserver 2.1.1 2) In our Test-Environment with openejb embedded 3.0 We have a problem in 2), which I described in a posting on the openejb-Mailinglist: On Jun 30, 2008, at 7:32 AM, [EMAIL PROTECTED] wrote: > Hi David, > > G