Consider the code in
How do I delete all JPA entities?
The documentation here http://download.oracle.com/docs/cd/E17410_01/javaee/6/tutorial/doc/gjitv.html
describes only queries.
Consider the code in How do I delete all JPA entities? The documentation here
Share
The documentation of the Criteria API describes only queries because the Criteria API is not made for DDL operations. Actually, I’d even say that the whole JPA API is not really made for that.
And by the way, the code of the other question doesn’t show DDL operations, it’s shows bulk DML operations which are described in the JPA 2.0 specification: