jdbctemplatetool jdbctemplatetool

Group org.crazycake
描述 Spring JdbcTemplate did very convient and useful, but it also has some disadvantages or in another word “inconvenient”. For example, you can’t just pass an object and tell JdbcTemplate to turn it into a sql and save to database just like hibernate does. Alright, you may say “JdbcTemplate doesn’t need you to write hbm.xml , so it’s understandable”. But is it true that this thing is impossible to achieve? And also you know JdbcTemplate can auto turn the result of a query to a list of persistent object a.k.a PO, but when you want to do this you will meet a problem: “How to ?”.Because you can’t find any function of JdbcTemplate to pass a sql and a PO class as we expected. After you google for it, you’ve been told you can create a BeanPropertyRowMapper to deal with this.
Packaging jar
Size 23.27 KB
文件 pom jar
网址 https://github.com/alexxiyang/jdbctemplatetool
发布时间 2014-09-25 01:00

dependencies

Group Artifact Version
org.springframework spring-orm 3.2.2.RELEASE
javax.persistence persistence-api 1.0
org.slf4j slf4j-api 1.7.2
org.slf4j slf4j-log4j12 1.7.2
junit junit 4.11
org.crazycake ScaffoldUnit 1.0.0-RELEASE
org.springframework spring-test 3.2.2.RELEASE
org.springframework spring-core 3.2.2.RELEASE
org.springframework spring-context 3.2.2.RELEASE
com.mchange c3p0 0.9.2.1
mysql mysql-connector-java 5.1.19
org.crazycake camel-name-utils 1.0.0-RELEASE

developers

alexxiyang Alex Yang

licenses

The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt
索引仓库
仓库 个数
Central 592045
7371584