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

2010-09-07 Thread Marc Logemann
Hi, thanks for this pretty straight answer. But one more thing that bothers me. Why is this only an issue while testing? When my app is running, i am pretty sure that i dont use the DP_PLZ_DA class somewhere in the code before the worfklow with the query arrives. So why does it work in normal

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

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

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

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 harald.wellm...@multi-m.dewrote: Hi