Mapping tool and generating SQL drop

2011-10-26 Thread Howard Mak
Hi, I know the mapping tool can be used to generate a SQL script to create tables/indices [using schemaAction "build"]. Is there anything analogous for generating a SQL script to *drop* the tables/indices? Unlike schemaAction "build", "drop" + "dropDB" seems to require a live database. Is there

Re: EntityManager#createNamedQuery(String, Class) problem

2011-10-26 Thread Laird Nelson
On Tue, Oct 25, 2011 at 1:31 PM, Laird Nelson wrote: > I've got a case where I'm building a query like this: > > TypedQuery q = em.createNamedQuery("someQuery", > SomeInterface.class); > > Now, SomeInterface is not the actual entity class--that would be > SomeInterfaceEntity (not mentioned above,