Re: Confusing warning about openjpa.jdbc.SynchronizeMappings

2010-09-07 Thread Kevin Sutter
Very good input, Harald. Thanks for your efforts. I'll post this information to the existing JIRA and we'll see if we can somebody to take a look. It would be great to get this one off the books. Kevin On Tue, Sep 7, 2010 at 1:44 PM, Harald Wellmann wrote: > > Hi Kevin, > > I can't offer a fi

Re: Confusing warning about openjpa.jdbc.SynchronizeMappings

2010-09-07 Thread Harald Wellmann
Hi Kevin, I can't offer a fix (yet), but I think I've pinpointed the problem. Here is a little test case: import static org.junit.Assert.assertEquals; import org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl; import org.junit.Test; public class ConfigurationTest { @Test public void cl

Re: problem using subclass object as query parameter

2010-09-07 Thread Michael Dick
Hi, The where clause in the query is obviously wrong : WHERE (1 <> 1) // always returns false We've seen similar statements with embedded objects on earlier versions of OpenJPA (1.2.1 comes to mind). Which version of OpenJPA are you using, and are you doing build time or runtime enhancemen

problem using subclass object as query parameter

2010-09-07 Thread javadia...@gmail.com
Hello everyone I have a problem using inheritance in OpenJPA. Here is my code @Entity @Table(name = "BASEBRN") @Inheritance(strategy=InheritanceType.JOINED) @DiscriminatorColumn(name="TYPE",discriminatorType=DiscriminatorType.INTEGER) public class BaseBranch { @Id @Column(name

Re: entities not detected properly in JUnit Test case (OpenJPA 1.2.2)

2010-09-07 Thread Rick Curtis
Marc - I'm willing to bet that your Entities are being loaded before you execute the query. You could try setting *-verbose:class* on your app server jvm and add some debug to your app in the first place where you execute the query. These two pieces of information should help you get a better feel