Hibernate doesn't like formatted scripts

Description

Creating db schema using hibernate "javax.persistence.schema-generation.create-source" : "script" property required unformatted script otherwise it throws exception.

 

The example script

the exception:

persistemc.xml:

I set script properties programaticaly:

 

It works when each SQL script is in single line, which means that the problem is with new lines

Environment

DB: postgres sql 11.4
Hibernate

Status

Assignee

Unassigned

Reporter

Marcin Kruglik

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure