used: glassifsh build 18 (Java SE mode).
If the following annotation is used with an Entity:
@Table(schema = "schema", catalog="catalog")
(and toplink.ddl-generation is set to drop-and-create-tables in persistence.xml)
the sql that is generated is incorrect and looks like this:
CREATE TABLE schema.catalog.ENTITY (ID BIGINT NOT NULL, PRIMARY KEY (ID))
The table name must look like this: