Today is my first attempt at using SPEL. After a mighty struggle, I was able to conquer it! Background: I needed a year variable for some work on a jsp page. It’s not always defined. I know for our routable datasource, a default year is required in order for it to work. I wanted to… Continue reading SPEL! I conquered you on a Friday!
After the cijug presentation on Grails, I’ve decided I will not use it. I know Grails is hot and cool but I don’t like it. It’s probably just a personal preference. Why don’t I want to use Grails It’s built on spring and hibernate, so why not just use them directly? It’s just adding another… Continue reading Grails: I will not use you
A coworker and I were chatting regarding spring rowMappers and I did a little more research and found the following: Spring’s simpleJdbcTemplate deprecated methods with parameterizedRowMapper in spring 3. The class ParameterizedRowMapper is not deprecated. Spring’s jdbcTemplate however only has methods that take RowMapper<T> so it will continue to work with parameterizedRowMapper. But it seems… Continue reading Spring row mapper
If you have a strange requirement in the rowMapper to check if a column exists or not, you could try to catch a SQLException of invalid column name or you could try:
So for a long time, I wondered how you’d do the sql IN() using spring jdbcTemplate. Today I had an opportunity to work it out. Normally I used It’s not too friendly if you do If you wish to use the “where in” sql, there is a pretty elegant way to do it in spring… Continue reading How to execute IN() SQL in spring jdbcTemplate
Watched the spring framework 3.1 webinar today and it was pretty interesting. Anyway, at work we are trying to possibly load property values from a database to resolve some tension between the developers and system specialists. I played a little bit at home as how we would set this up. This is not a new… Continue reading Spring loading properties from database with a twist