[
https://issues.jboss.org/browse/AS7-6327?page=com.atlassian.jira.plugin.s...
]
Anil Arora commented on AS7-6327:
---------------------------------
I would definitely like something that allows me to do whatever. In particular, I'm
trying to use flyway (
http://flywaydb.org) to bring the database up to speed. As far as I
can tell, there's nothing really out there that exists to support this case, except if
you use Seam or Spring and manage the EntityManagerFactory, whose creation is what
triggers the validation of the schema.
I believe something is happening in future releases of the JPA, but having this support
for earlier versions of the JPA would be extremely helpful.
Create JPA service callback for invoking database migration
-----------------------------------------------------------
Key: AS7-6327
URL:
https://issues.jboss.org/browse/AS7-6327
Project: Application Server 7
Issue Type: Feature Request
Components: JPA / Hibernate
Affects Versions: 7.1.3.Final (EAP)
Reporter: Anil Arora
Assignee: Scott Marlow
Looking for a simple callback/listener mechanism so that we can invoke a database
migration script before JPA persistent unit starts up and runs the Hibernate schema
validation mechanism.
Ideally, there would be a property within the persistence.xml that indicates which class
to call. It would also pass in/inject the datasource that is being used for the
persistence unit.
Essentially, this would solve the lack of migration support in Hibernate itself.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira