Open lukasj opened 8 years ago
@glassfishrobot Commented Reported by JesperTejlgaard
@glassfishrobot Commented neilstockton said: And DataNucleus JPA seems to overwrite the DDL when I use it which, for my usage, seems like a much better default behaviour.
@glassfishrobot Commented This issue was imported from java.net JIRA JPA_SPEC-135
This seems like low-hanging fruit that could be looked at in the next release and resolved one way or the other? It does appear to be a fairly low priority either way.
Reza Rahman Jakarta EE Ambassador, Author, Blogger, Speaker
Please note views expressed here are my own as an individual community member and do not reflect the views of my employer.
It seems unclear in the JPA 2.1 specification whether files specified in the javax.persistence.schema-generation.scripts.drop-target and javax.persistence.schema-generation.scripts.create-target properties are expected to overwrite an existing version of such a file or to append to the file.
It seems that Hibernate has chosen to append to existing files resulting in a growing file if not deleted by other processes.
Affected Versions
[2.1.1]