task #6714
Create 001-cdm.h2.sql automatically
50%
Description
Some links I found:
How to generate Envers database schema with org.hibernate.tool.EnversSchemaGenerator? https://stackoverflow.com/questions/9647528/how-to-generate-envers-database-schema-with-org-hibernate-tool-enversschemagener
Hibernate Envers Generation of DDL script with ant. AUD tables not generated: https://developer.jboss.org/thread/221533
Hibernate tools for Hibernate 4.x https://developer.jboss.org/thread/203735
Hibernate Tools: http://hibernate.org/tools/
Generelly interesting Hibernate Tools: http://tools.jboss.org/features/hibernate.html
Older (ANT): http://www.thomas-letsch.de/2013/generate-ddl-with-hibernate-tools-jpa-and-maven/
Entwicklung von Hibernate Tools scheint inzwischen wieder sehr aktiv zu sein: http://mvnrepository.com/artifact/org.hibernate/hibernate-tools
2013: Vergleich DDL Generierung xml mapping-annotation-JPA; Beispielprojekte https://www.taringamberini.com/en/blog/java/how-to-generate-ddl-with-hibernate-4-hibernate-tools-and-maven/
Juplo links:
- http://juplo.de/hibernate4-maven-plugin/index.html
- http://juplo.de/hibernate4-maven-plugin/configuration.html
- http://juplo.de/hibernate-maven-plugin/pitfalls.html
- https://gist.github.com/dwelch2344/5995614
- https://shred.zone/cilla/page/381/hibernate-4-schema-generation-with-maven.html
Older, not envers specific:
- http://www.onlinetutorialspoint.com/hibernate/hbm2ddl-auto-example-hibernate-xml-config.html
- https://stackoverflow.com/questions/27314165/generate-ddl-script-at-maven-build-with-hibernate4-jpa-2-1
- https://www.smartics.eu/hibernate4-maven-plugin/
- https://sourceforge.net/projects/hibernate4mavenplugin/files/hibernate4-maven-plugin/
- https://blog.progs.be/576/create-update-ddl-for-jpa
- http://jandrewthompson.blogspot.de/2009/10/how-to-generate-ddl-scripts-from.html
- https://blog.mafr.de/2008/04/12/hibernate3-schema-creation/
Hibernate doc:
Related issues
Associated revisions
ref #6714 fix ClearDBxxx schemas after updating 001-cdm.h2.sql
ref #6714 fix UserAndGroupServiceImplTest after updating 001-cdm.h2.sql
fix 6714 generate 001-cdm.h2.sql automatically by maven
fix 6714 add old 001-cdm.h2.sql to gitignore
fix 6714 preliminary add generated 001-cdm.h2.sql
History
#1 Updated by Andreas Müller over 3 years ago
- Related to task #6696: Improve architecture for Model updates added
#2 Updated by Andreas Müller over 3 years ago
- Description updated (diff)
#3 Updated by Andreas Müller over 3 years ago
- Description updated (diff)
#4 Updated by Andreas Müller over 3 years ago
- Related to task #6715: Can we make better use of hibernate tools? added
#5 Updated by Andreas Müller over 3 years ago
- Description updated (diff)
#6 Updated by Andreas Müller over 3 years ago
- Description updated (diff)
#7 Updated by Andreas Müller over 2 years ago
- Target version changed from CDM UML 5.0 to CDM UML 5.5
#8 Updated by Andreas Müller about 2 years ago
- Priority changed from Highest to Priority14
#9 Updated by Andreas Müller over 1 year ago
- Target version changed from CDM UML 5.5 to CDM UML 5.15
#10 Updated by Andreas Müller 8 months ago
- Description updated (diff)
#11 Updated by Andreas Müller 7 months ago
- Target version changed from CDM UML 5.15 to CDM UML 5.19
#12 Updated by Andreas Müller 5 months ago
- Status changed from New to Resolved
- Assignee changed from Andreas Müller to Andreas Kohlbecker
- Target version changed from CDM UML 5.19 to Release 5.18
- % Done changed from 0 to 50
#13 Updated by Andreas Müller 5 months ago
Hibernate 5.1 SchemaGenerator includes envers schema generation now. So the old mechanism only needed to be updated (ant script, naming strategies, etc.)
#14 Updated by Andreas Müller 5 months ago
- Status changed from Resolved to Feedback
- Assignee changed from Andreas Kohlbecker to Andreas Müller
Copying the file does not yet work on jenkins
#15 Updated by Andreas Müller about 2 months ago
- Target version changed from Release 5.18 to Release 5.19
This is more or less done in 5.18 except for the copying issue