I need to create a new Table in a Database I access through a JPA EntityManager. Do JPA NativeQueries support Queries other than \"Select\" or \"Update\"? Or is there anothe
JPA (at least Hibernate) can let you execute DDL statements directly using createNativeQuery() and executeUpdate() as follows:
EntityManager em = ...;
em.createNativeQuery("CREATE TABLE FOO (FOO_ID NUMBER)").executeUpdate();
em.createNativeQuery("DROP TABLE FOO").executeUpdate();
It's not ideal, but you can do it.