Duplicate schema name in sequence generation
问题 To prevent the usage of the schema attribute in the table annotation to all of my entities, I set the default schema name by the schema.xml: <?xml version="1.0" encoding="UTF-8"?> <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd" version="2.0"> <persistence-unit-metadata> <persistence-unit-defaults> <schema>X</schema> </persistence-unit-defaults>