资 源 简 介
Hydrogen-dao is a quite simple java DAO framework.
The main goal of this project is to provide a SIMPLEST way to access data. That means less time to learn and less code to write.
**Source code upgraded to version 2.1-SNAPSHOT!**
* Transaction and SimpleTransaction removed;
* DAO.update() improved;
* No longer uses dao-config.xml, uses DataSourceManager instead, which is more friendly to IOC containers;
* Only Oracle is fully tested for now.
Features:
* JDBC connection management with multiple datasources
* Parameterized SQL execution
* Automatic Table-Object mapping without any configuration
* Pojo/Map based inserting
* JDBC based cross-datasource transaction management
Requirement:
* Java 1.5 or above.
Example:
```
DAO dao = dataSourceManager.getDAO("dbserver1");
List employees = dao.query(
Employee.class, // wra