Skip to content

Commit

Permalink
Release 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Mar 4, 2016
1 parent 19747cc commit c6250ab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

2.0 / 2016-03-04
==================

* Add support for QueryDSL

1.5 / 2016-03-01
==================

Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class UserRestController {
<dependency>
<groupId>com.github.darrachequesne</groupId>
<artifactId>spring-data-jpa-datatables</artifactId>
<version>1.5</version>
<version>2.0</version>
</dependency>
```

Expand Down Expand Up @@ -91,6 +91,15 @@ The repositories now expose the following methods:
* `DataTablesOutput<T> findAll(DataTablesInput input);`
* `DataTablesOutput<T> findAll(DataTablesInput input, Specification<T> additionalSpecification);`

Note: since version 2.0, QueryDSL is also supported:
* replace `DataTablesRepositoryFactoryBean` with `QDataTablesRepositoryFactoryBean`
* replace `DataTablesRepository` with `QDataTablesRepository`

and your repositories will now expose:

* `DataTablesOutput<T> findAll(DataTablesInput input);`
* `DataTablesOutput<T> findAll(DataTablesInput input, com.mysema.querydsl.Predicate additionalPredicate);`

Your controllers should be able to handle the parameters sent by DataTables:

```java
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.darrachequesne</groupId>
<artifactId>spring-data-jpa-datatables</artifactId>
<version>2.0-SNAPSHOT</version>
<version>2.0</version>

<name>Spring Data JPA for DataTables</name>
<description>Spring Data JPA extension to work with the great jQuery plug-in DataTables (http://datatables.net/)</description>
Expand Down

0 comments on commit c6250ab

Please sign in to comment.