Skip to content

Commit

Permalink
[Wen Hao] - update doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhao committed Dec 8, 2017
1 parent bfd0210 commit 590c0a1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ but it still productive and easily understandable. Build on Spring Data JPA and

### Docs

English Version:
English Version:

[Latest]

Expand Down Expand Up @@ -390,6 +390,7 @@ Licensed under [Apache License]
[LikeTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/LikeTest.java
[NotLikeTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/NotLikeTest.java
[OrTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/OrTest.java
[AndOrTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/AndOrTest.java
[AndTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/AndTest.java
[JoinTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/JoinTest.java
[SortTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/SortsTest.java
Expand Down
19 changes: 10 additions & 9 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ but it still productive and easily understandable. Build on Spring Data JPA and
<!--
* Compatible with Spring Data JPA and JPA 2.1 interface.
* Equal/NotEqual/Like/NotLike/In/NotIn support multiple values, Equal/NotEqual support **Null** value.
* Each specification support join query(left joiner).
* Each specification support join query(left joiner).
* Support custom specification.
* Builder style specification creator.
* Support pagination and sort builder.
Expand Down Expand Up @@ -180,7 +180,7 @@ public List<Person> findAll(SearchRequest request) {
#### 比较例子

<!--
Support any comparison class which implements Comparable interface, find any people age bigger than 18.
Support any comparison class which implements Comparable interface, find any people age bigger than 18.
-->
支持任何实现Comparable接口的类的比较,查询任何年纪大于等于18的人。

Expand Down Expand Up @@ -300,7 +300,7 @@ public List<Person> findAll(SearchRequest request) {
#### 关联查询

<!--
each specification support association query as left join.
each specification support association query as left join.
-->
每个条件查询都支持左连接查询。

Expand All @@ -310,7 +310,7 @@ each specification support association query as left join.
@ManyToOne association query, find person name equals to "Jack" and phone brand equals to "HuaWei".
-->
多对一查询,查询任何名字等于 "Jack" 并且此人的电话品牌是 "HuaWei"的人。

```java
public List<Phone> findAll(SearchRequest request) {
Specification<Phone> specification = Specifications.<Phone>and()
Expand Down Expand Up @@ -473,7 +473,7 @@ public class PersonIdCard {
private String name;
private Integer age;
private String number;
// Getters and setters are omitted for brevity
}
```
Expand All @@ -494,7 +494,7 @@ public List<PersonIdCard> findAll(SearchRequest request) {
#### 投射、分组和聚合
<!--
Spring Data JPA doesn't support **Projection**(a little but trick), **GroupBy** and **Aggregation**,
Spring Data JPA doesn't support **Projection**(a little but trick), **GroupBy** and **Aggregation**,

furthermore, Projection/GroupBy/Aggregation are often used for complex statistics report, it might seem like overkill to use Hibernate/JPA ORM to solve it.

Expand All @@ -513,16 +513,17 @@ Copyright © 2016-2017 Wen Hao
Licensed under [Apache License]

[Legacy Hibernate Criteria Queries]: https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#appendix-legacy-criteria
[EqualTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/EqualTest.java
[NotEqualTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/NotEqualTest.java
[EqualTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/EqualTest.java
[NotEqualTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/NotEqualTest.java
[InTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/InTest.java
[GtTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/GtTest.java
[BetweenTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/BetweenTest.java
[LikeTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/LikeTest.java
[NotLikeTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/NotLikeTest.java
[OrTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/OrTest.java
[AndOrTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/AndOrTest.java
[AndTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/AndTest.java
[JoinTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/JoinTest.java
[SortTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/SortsTest.java
[VirtualViewTest.java]: ./src/test/java/com/github/wenhao/jpa/integration/VirtualViewTest.java
[Apache License]: ./LICENSE
[Apache License]: ./LICENSE
2 changes: 1 addition & 1 deletion docs/3.1.1.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Changes

1. Upgrade to Java 1.8.
2. Comparison support all class which implement Comparable interface.
2. Comparison support all class which implement Comparable interface.

### Gradle

Expand Down

0 comments on commit 590c0a1

Please sign in to comment.