Archive for June 4th, 2008

Configuring Tomcat 5.5 JNDI Datasources with Spring

Wednesday, June 4th, 2008

First of all, make sure you're looking at the Tomcat 5.5 JNDI HowTo, not the Tomcat 5, and definitely not Tomcat 4. Yes, I know this sounds obvious, but once you start googling you'll find it's hard to distinguish the versions. Place a context definition in /META-INF/context.xml - this is the ...

Extending Hibernate Validator for BigDecimal Range validation

Wednesday, June 4th, 2008

Hibernate Validator is a very precise framework written in the hibernate umbrella of frameworks. Using the inbuilt validators should solve most of your column constraints. However, if you have Decimal types (Float, Double of BigDecimal), there is no inbuilt validator to validate both the precision and scale. Also, I've stopped ...