Jakarta Persistence (JPA) Method

void drop(
  boolean dropSchemas
)


Drop database objects mapped by entities belonging to the persistence unit, undoing the effects of the previous creation.

If a DDL operation fails, the behavior is undefined. A provider may throw an exception, or it may ignore the problem and continue.

Parameters:
dropSchemas - if true, drop schemas, otherwise, leave them be
Since:
Jakarta Persistence (JPA) 1.0