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
parameters safely (e.g., an IN clause).

It's not perfect but it is the one bit of Spring I use by choice.

On Tue, Feb 19, 2013 at 1:11 AM, phil swenson <[email protected]>wrote:

> 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 code, so I don't get that either….
>
> Scala migrations is exaclty the type of thing I was thinking about.
>
> On Mon, Feb 18, 2013 at 1:18 PM, Thomas Queste <[email protected]> wrote:
> > @Phil: Flyway can mix both SQL and Java migrations.
> >
> >
> > --
> > Thomas Queste
> >
> >
> >
> >
> > On Mon, Feb 18, 2013 at 9:13 PM, phil swenson <[email protected]>
> > 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 allow.
> >>
> >> On Mon, Feb 18, 2013 at 11:19 AM, Wayne Fay <[email protected]> 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://liquibase.org/quickstart
> >> >
> >> > Wayne
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Java Posse" group.
> >> > To unsubscribe from this group and stop receiving emails from it, send
> >> > an email to [email protected].
> >> > To post to this group, send email to [email protected].
> >> > Visit this group at http://groups.google.com/group/javaposse?hl=en.
> >> > For more options, visit https://groups.google.com/groups/opt_out.
> >> >
> >> >
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Java Posse" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to [email protected].
> >> To post to this group, send email to [email protected].
> >> Visit this group at http://groups.google.com/group/javaposse?hl=en.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Java Posse" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/javaposse?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/javaposse?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/javaposse?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to