New Topic: Is it possible to define a changeset programmatically?

View: New views
1 Messages — Rating Filter:   Alert me  

New Topic: Is it possible to define a changeset programmatically?

by LiquiBase Community Forum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A new topic, 'Is it possible to define a changeset programmatically?', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=218.new#new

The text of the topic is shown below:

Hi,

I would like to use Liquibase for inserting master data in a JPA environment, so I have no need to define SQL statements
or using <insert> in changesets. I would prefer to define a changeset programatically, e.g. as a Java class implementing
a special interface or as a JUnit Testcase (because then I can use SpringRunner and the like to get the PersistenceContext)
This way I could use JPA for creating the data, keep the refactoring support of my IDE and use LiquiBase just for the
book keeping.
So, is something like this already supported? If not, do you think some kind of JUnit extension is easy to implement?
(would also be nice for defining prerequisites)

To make myself clear, I want to define something like this:
   <changeSet id="1" author="robin">
       <execute class="de/robin/InsertNewStates" />
   </changeSet>

regards,

Robin.

Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=2.0

Regards,
The LiquiBase Community Forum Team.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Liquibase-devel mailing list
Liquibase-devel@...
https://lists.sourceforge.net/lists/listinfo/liquibase-devel