diff --git a/doc/MyBatis 3 User Guide Simplified Chinese.pdf b/doc/MyBatis 3 User Guide Simplified Chinese.pdf new file mode 100644 index 0000000..a47387a Binary files /dev/null and b/doc/MyBatis 3 User Guide Simplified Chinese.pdf differ diff --git a/doc/Oreilly.Just.Spring.Data.Access.June.2012.pdf b/doc/Oreilly.Just.Spring.Data.Access.June.2012.pdf new file mode 100644 index 0000000..2e41cae Binary files /dev/null and b/doc/Oreilly.Just.Spring.Data.Access.June.2012.pdf differ diff --git a/doc/Oreilly.Spring.Data.Oct.2012.pdf b/doc/Oreilly.Spring.Data.Oct.2012.pdf new file mode 100644 index 0000000..9547c24 Binary files /dev/null and b/doc/Oreilly.Spring.Data.Oct.2012.pdf differ diff --git a/doc/spring-batch-reference.pdf b/doc/spring-batch-reference.pdf new file mode 100644 index 0000000..3970b7b Binary files /dev/null and b/doc/spring-batch-reference.pdf differ diff --git a/doc/spring-blazeds-reference.pdf b/doc/spring-blazeds-reference.pdf new file mode 100644 index 0000000..f8aeec1 Binary files /dev/null and b/doc/spring-blazeds-reference.pdf differ diff --git a/doc/spring-boot-reference.pdf b/doc/spring-boot-reference.pdf new file mode 100644 index 0000000..d642e69 Binary files /dev/null and b/doc/spring-boot-reference.pdf differ diff --git a/doc/spring-data-commons-reference.pdf b/doc/spring-data-commons-reference.pdf new file mode 100644 index 0000000..1e4a47c Binary files /dev/null and b/doc/spring-data-commons-reference.pdf differ diff --git a/doc/spring-data-hadoop-reference.pdf b/doc/spring-data-hadoop-reference.pdf new file mode 100644 index 0000000..39eb253 Binary files /dev/null and b/doc/spring-data-hadoop-reference.pdf differ diff --git a/doc/spring-data-jdbc-ext-reference.pdf b/doc/spring-data-jdbc-ext-reference.pdf new file mode 100644 index 0000000..faac6e8 Binary files /dev/null and b/doc/spring-data-jdbc-ext-reference.pdf differ diff --git a/doc/spring-data-jpa-reference.pdf b/doc/spring-data-jpa-reference.pdf new file mode 100644 index 0000000..1f18f7d Binary files /dev/null and b/doc/spring-data-jpa-reference.pdf differ diff --git a/doc/spring-data-mongodb-reference.pdf b/doc/spring-data-mongodb-reference.pdf new file mode 100644 index 0000000..17db920 Binary files /dev/null and b/doc/spring-data-mongodb-reference.pdf differ diff --git a/doc/spring-data-redis-reference.pdf b/doc/spring-data-redis-reference.pdf new file mode 100644 index 0000000..331ce86 Binary files /dev/null and b/doc/spring-data-redis-reference.pdf differ diff --git a/doc/spring-data-rest-reference.pdf b/doc/spring-data-rest-reference.pdf new file mode 100644 index 0000000..02ae41b Binary files /dev/null and b/doc/spring-data-rest-reference.pdf differ diff --git a/doc/spring-data-solr-reference.pdf b/doc/spring-data-solr-reference.pdf new file mode 100644 index 0000000..ffdc011 Binary files /dev/null and b/doc/spring-data-solr-reference.pdf differ diff --git a/doc/spring-framework-reference.pdf b/doc/spring-framework-reference.pdf new file mode 100644 index 0000000..e4924bd Binary files /dev/null and b/doc/spring-framework-reference.pdf differ diff --git a/doc/spring-webflow-reference.pdf b/doc/spring-webflow-reference.pdf new file mode 100644 index 0000000..7931c7e Binary files /dev/null and b/doc/spring-webflow-reference.pdf differ diff --git a/doc/spring-ws-reference.pdf b/doc/spring-ws-reference.pdf new file mode 100644 index 0000000..cf7d326 Binary files /dev/null and b/doc/spring-ws-reference.pdf differ diff --git a/spring-jdbc-tutorials/README.md b/spring-jdbc-tutorials/README.md new file mode 100644 index 0000000..2bdcbdb --- /dev/null +++ b/spring-jdbc-tutorials/README.md @@ -0,0 +1,47 @@ +spring-jdbc-tutorials +=============== + +spring jdbc 教程 覆盖以下内容: + +* 使用QueryDsl查询记录 + +* 使用JdbcTemplate查询记录 + +* 使用NamedParameterJdbcTemplate查询记录 + +* 使用SimpleJdbcInsert新增 + +* 使用SimpleJdbcCall调用存储过程和函数 + +* 使用MappingSqlQuery查询记录 + +* 使用SqlUpdate新增记录 + +* 使用OneToManyResultSetExtractor spring jdbc 一对多查询 + +* 使用ParameterizedBeanPropertyRowMapper查询记录 + +* 使用BeanPropertySqlParameterSource查询记录 + +* 使用MapSqlParameterSource查询记录 + +* 使用KeyHolder获取新增数据库自动生成的主键 + +* 使用BatchPreparedStatementSetter查询记录 + +* 使用SqlParameterSourceUtils查询记录 + +* 使用BeanPropertyRowMapper查询记录 + +* 使用用户自定义的RowMapper查询记录 + + +使用querydsl-maven-plugin生成querydsl + + +querydsl-maven-plugin usage + +``` +mvn com.mysema.querydsl:querydsl-maven-plugin:export +``` + diff --git a/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QAddress.java b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QAddress.java new file mode 100644 index 0000000..d3437f3 --- /dev/null +++ b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QAddress.java @@ -0,0 +1,48 @@ +package org.spring.jdbc.tutorials.model; + +import static com.mysema.query.types.PathMetadataFactory.*; + +import com.mysema.query.types.path.*; + +import com.mysema.query.types.PathMetadata; +import javax.annotation.Generated; +import com.mysema.query.types.Path; + + +/** + * QAddress is a Querydsl query type for QAddress + */ +@Generated("com.mysema.query.sql.codegen.MetaDataSerializer") +public class QAddress extends com.mysema.query.sql.RelationalPathBase { + + private static final long serialVersionUID = -1326889475; + + public static final QAddress address = new QAddress("address"); + + public final StringPath city = createString("city"); + + public final NumberPath custId = createNumber("cust_id", Integer.class); + + public final NumberPath id = createNumber("id", Integer.class); + + public final StringPath street = createString("street"); + + public final com.mysema.query.sql.PrimaryKey primary = createPrimaryKey(id); + + public final com.mysema.query.sql.ForeignKey addressCustomerRef = createForeignKey(custId, "CUST_ID"); + + public QAddress(String variable) { + super(QAddress.class, forVariable(variable), "null", "address"); + } + + @SuppressWarnings("all") + public QAddress(Path path) { + super((Class)path.getType(), path.getMetadata(), "null", "address"); + } + + public QAddress(PathMetadata metadata) { + super(QAddress.class, metadata, "null", "address"); + } + +} + diff --git a/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QContact.java b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QContact.java new file mode 100644 index 0000000..3486506 --- /dev/null +++ b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QContact.java @@ -0,0 +1,48 @@ +package org.spring.jdbc.tutorials.model; + +import static com.mysema.query.types.PathMetadataFactory.*; + +import com.mysema.query.types.path.*; + +import com.mysema.query.types.PathMetadata; +import javax.annotation.Generated; +import com.mysema.query.types.Path; + + +/** + * QContact is a Querydsl query type for QContact + */ +@Generated("com.mysema.query.sql.codegen.MetaDataSerializer") +public class QContact extends com.mysema.query.sql.RelationalPathBase { + + private static final long serialVersionUID = 772329001; + + public static final QContact contact = new QContact("contact"); + + public final StringPath address = createString("address"); + + public final NumberPath contactId = createNumber("contact_id", Integer.class); + + public final StringPath email = createString("email"); + + public final StringPath name = createString("name"); + + public final StringPath telephone = createString("telephone"); + + public final com.mysema.query.sql.PrimaryKey primary = createPrimaryKey(contactId); + + public QContact(String variable) { + super(QContact.class, forVariable(variable), "null", "contact"); + } + + @SuppressWarnings("all") + public QContact(Path path) { + super((Class)path.getType(), path.getMetadata(), "null", "contact"); + } + + public QContact(PathMetadata metadata) { + super(QContact.class, metadata, "null", "contact"); + } + +} + diff --git a/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QCustomer.java b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QCustomer.java new file mode 100644 index 0000000..afd2847 --- /dev/null +++ b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QCustomer.java @@ -0,0 +1,46 @@ +package org.spring.jdbc.tutorials.model; + +import static com.mysema.query.types.PathMetadataFactory.*; + +import com.mysema.query.types.path.*; + +import com.mysema.query.types.PathMetadata; +import javax.annotation.Generated; +import com.mysema.query.types.Path; + + +/** + * QCustomer is a Querydsl query type for QCustomer + */ +@Generated("com.mysema.query.sql.codegen.MetaDataSerializer") +public class QCustomer extends com.mysema.query.sql.RelationalPathBase { + + private static final long serialVersionUID = -653977867; + + public static final QCustomer customer = new QCustomer("customer"); + + public final NumberPath age = createNumber("AGE", Integer.class); + + public final NumberPath custId = createNumber("CUST_ID", Integer.class); + + public final StringPath name = createString("NAME"); + + public final com.mysema.query.sql.PrimaryKey primary = createPrimaryKey(custId); + + public final com.mysema.query.sql.ForeignKey _addressCustomerRef = createInvForeignKey(custId, "cust_id"); + + public QCustomer(String variable) { + super(QCustomer.class, forVariable(variable), "null", "customer"); + } + + @SuppressWarnings("all") + public QCustomer(Path path) { + super((Class)path.getType(), path.getMetadata(), "null", "customer"); + } + + public QCustomer(PathMetadata metadata) { + super(QCustomer.class, metadata, "null", "customer"); + } + +} + diff --git a/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QEmployee.java b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QEmployee.java new file mode 100644 index 0000000..f29d484 --- /dev/null +++ b/spring-jdbc-tutorials/src/generated/java/org/spring/jdbc/tutorials/model/QEmployee.java @@ -0,0 +1,44 @@ +package org.spring.jdbc.tutorials.model; + +import static com.mysema.query.types.PathMetadataFactory.*; + +import com.mysema.query.types.path.*; + +import com.mysema.query.types.PathMetadata; +import javax.annotation.Generated; +import com.mysema.query.types.Path; + + +/** + * QEmployee is a Querydsl query type for QEmployee + */ +@Generated("com.mysema.query.sql.codegen.MetaDataSerializer") +public class QEmployee extends com.mysema.query.sql.RelationalPathBase { + + private static final long serialVersionUID = -66683451; + + public static final QEmployee employee = new QEmployee("employee"); + + public final NumberPath age = createNumber("AGE", Integer.class); + + public final NumberPath id = createNumber("ID", Integer.class); + + public final StringPath name = createString("NAME"); + + public final com.mysema.query.sql.PrimaryKey primary = createPrimaryKey(id); + + public QEmployee(String variable) { + super(QEmployee.class, forVariable(variable), "null", "employee"); + } + + @SuppressWarnings("all") + public QEmployee(Path path) { + super((Class)path.getType(), path.getMetadata(), "null", "employee"); + } + + public QEmployee(PathMetadata metadata) { + super(QEmployee.class, metadata, "null", "employee"); + } + +} + diff --git a/spring-jdbc-tutorials/src/main/java/org/spring/jdbc/tutorials/model/Address.java b/spring-jdbc-tutorials/src/main/java/org/spring/jdbc/tutorials/model/Address.java new file mode 100644 index 0000000..bd15a23 --- /dev/null +++ b/spring-jdbc-tutorials/src/main/java/org/spring/jdbc/tutorials/model/Address.java @@ -0,0 +1,28 @@ +package org.spring.jdbc.tutorials.model; + +public class Address { + + private Integer id; + private String street; + private String city; + + public Integer getId() { + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getStreet() { + return street; + } + public void setStreet(String street) { + this.street = street; + } + public String getCity() { + return city; + } + public void setCity(String city) { + this.city = city; + } + +}