Re: [The Java Posse] rails-like migrations for java

2013-02-19 Thread phil swenson
good find. I like their description: "A pluggable parser for Liquibase that allows the creation of changelogs in a Groovy DSL, rather than hurtful XML" On Mon, Feb 18, 2013 at 7:28 PM, Dan Stine wrote: > You could try > > https://github.com/tlberglund/groovy-liquibase > > On Feb 18, 2013, at 3:

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Dan Stine
You could try https://github.com/tlberglund/groovy-liquibase On Feb 18, 2013, at 3:13 PM, phil swenson wrote: It's better than naked sql, but I think it should be a DSL - not XML. I would like the ability to add code to my migrations, sometimes data needs to be transformed during a migration.

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Ricky Clarkson
Spring's JDBC stuff can be used without any other parts of Spring, no XML, no annotations, no reflection-based injection. It provides a reasonably functional-like interface to handling ResultSets, and with a little pain it improves over straight JDBC in terms of specifying variable numbers of para

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread phil swenson
I was looking for a DSL. JDBC is a terrible API, so not a fan of anything that uses it. Spring's JDBC API is better, but I never understood why spring was so XML happy. What is the advantage of wiring in XML vs a simple java class? And the annotation wiring spreads your wiring throughout the co

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread phil swenson
I figured Liquibase had something. But don't scala migrations look more intuitive? I've used Rails migrations for years and find the implementation very nice. Scala migrations looks very, very similar. On Mon, Feb 18, 2013 at 2:45 PM, Oscar Hsieh wrote: > This is a better link > > https://liqui

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Thomas Queste
@Phil: Flyway can mix both SQL and Java migrations. -- Thomas Queste On Mon, Feb 18, 2013 at 9:13 PM, phil swenson wrote: > It's better than naked sql, but I think it should be a DSL - not XML. > > I would like the ability to add code to my migrations, sometimes data > needs to be transform

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Oscar Hsieh
This is a better link https://liquibase.jira.com/wiki/display/CONTRIB/LiquiBase+Extensions+Portal Also check out these build-in commands that support custom refactoring http://www.liquibase.org/manual/modify_sql http://www.liquibase.org/manual/custom_refactoring_class http://www.liquibase.org/ma

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Fabrizio Giudici
On Mon, 18 Feb 2013 21:13:00 +0100, phil swenson wrote: It's better than naked sql, but I think it should be a DSL - not XML. I would like the ability to add code to my migrations, sometimes data needs to be transformed during a migration. And code lets you do dynamic things that XML won't

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Wayne Fay
> I would like the ability to add code to my migrations, sometimes data > needs to be transformed during a migration. And code lets you do > dynamic things that XML won't allow. Liquibase can handle some of this too: http://liquibase.org/manual/update_data Wayne -- You received this message be

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread phil swenson
It's better than naked sql, but I think it should be a DSL - not XML. I would like the ability to add code to my migrations, sometimes data needs to be transformed during a migration. And code lets you do dynamic things that XML won't allow. On Mon, Feb 18, 2013 at 11:19 AM, Wayne Fay wrote: >>

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Matthew Farwell
+1 for me as well. Matthew Farwell. On 18 Feb 2013 19:46, "Fabrizio Giudici" wrote: > On Mon, 18 Feb 2013 19:19:15 +0100, Wayne Fay wrote: > > Has anyone found an open source java (or JVM) project that implements >>> anything like rails-like migrations? All I see are naked SQL script >>> mig

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Fabrizio Giudici
On Mon, 18 Feb 2013 19:19:15 +0100, Wayne Fay wrote: Has anyone found an open source java (or JVM) project that implements anything like rails-like migrations? All I see are naked SQL script migration techniques. Safe to assume you've seen liquibase and it was not rails-like enough? http://l

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Raul Guiu
An alternative to Liquibase is Flyway: http://flywaydb.org/ On 18 February 2013 19:20, phil swenson wrote: > Thanks, that looks really nice! > > On Mon, Feb 18, 2013 at 11:02 AM, Josh Berry wrote: > > Have you seen scala-migrations? > http://code.google.com/p/scala-migrations > > > > > > On Mo

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread phil swenson
Thanks, that looks really nice! On Mon, Feb 18, 2013 at 11:02 AM, Josh Berry wrote: > Have you seen scala-migrations? http://code.google.com/p/scala-migrations > > > On Mon, Feb 18, 2013 at 12:52 PM, phil swenson > wrote: >> >> Has anyone found an open source java (or JVM) project that implement

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Wayne Fay
> Has anyone found an open source java (or JVM) project that implements > anything like rails-like migrations? All I see are naked SQL script > migration techniques. Safe to assume you've seen liquibase and it was not rails-like enough? http://liquibase.org/quickstart Wayne -- You received thi

Re: [The Java Posse] rails-like migrations for java

2013-02-18 Thread Josh Berry
Have you seen scala-migrations? http://code.google.com/p/scala-migrations On Mon, Feb 18, 2013 at 12:52 PM, phil swenson wrote: > Has anyone found an open source java (or JVM) project that implements > anything like rails-like migrations? All I see are naked SQL script > migration techniques. >

[The Java Posse] rails-like migrations for java

2013-02-18 Thread phil swenson
Has anyone found an open source java (or JVM) project that implements anything like rails-like migrations? All I see are naked SQL script migration techniques. In rails a migration looks something like this: class AddWallIdToProjects < ActiveRecord::Migration def change add_column :project