Re: Schema not dropped using Apache Aries JPA and OpenJPA 2.1

2011-10-25 Thread Rick Curtis
Charles - Try configuring SychronizeMappings this way : property name=openjpa.jdbc.SynchronizeMappings value=buildSchema(SchemaAction='drop,add')/ Thanks, Rick On Tue, Oct 25, 2011 at 12:29 AM, Charles Moulliard cmoulli...@gmail.comwrote: Hi, I have deployed successfully a Aries JPA

EntityManager#createNamedQuery(String, Class) problem

2011-10-25 Thread Laird Nelson
We're using OpenJPA 2.1.0. I've got a case where I'm building a query like this: TypedQuerySomeInterface q = em.createNamedQuery(someQuery, SomeInterface.class); Now, SomeInterface is not the actual entity class--that would be SomeInterfaceEntity (not mentioned above, as you'll note). But it

Re: Problems with Oracle 11g and primary_key as rowtype IDENTITY

2011-10-25 Thread MiƂosz Tylenda
Sebastian, For the sequence name too long problem, you could try setting the maxAutoAssignNameLength dictionary property to the maximum sequence name length in Oracle. You can also set the sequence name via the autoAssignSequenceName dictionary property but in this case you will rather need

Re: EntityManager#createNamedQuery(String, Class) problem

2011-10-25 Thread Rick Curtis
I am also using (I know, I know) subclass-based enhancement. Have you tried with build time, or -javaagent enhancement? Can you put together a small unit test? Thanks, Rick On Tue, Oct 25, 2011 at 12:31 PM, Laird Nelson ljnel...@gmail.com wrote: We're using OpenJPA 2.1.0. I've got a case