jakartaee / persistence

https://jakartaee.github.io/persistence/
Other
208 stars 59 forks source link

Unclear file handling for javax.persistence.schema-generation.scripts.drop-target and javax.persistence.schema-generation.scripts.create-target #135

Open lukasj opened 8 years ago

lukasj commented 8 years ago

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]

lukasj commented 6 years ago
lukasj commented 8 years ago

@glassfishrobot Commented Reported by JesperTejlgaard

lukasj commented 8 years ago

@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.

lukasj commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JPA_SPEC-135

m-reza-rahman commented 3 years ago

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.