RE: Problem with foreign keys on DB and JPA delete

2008-07-02 Thread Eric Nelson
Hi Beniamin. Two things to try: 1. Add CascadeType.REMOVE to your SubProduct annotation 2. Add @ForeignKey annotation to SubProduct just after the @JoinColumn annotation. We ran into an issue where OpenJPA was trying to delete the table that was referenced by the foreign key before deleting the

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 ---