This is an automated email from the ASF dual-hosted git repository. ntimofeev pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/master by this push: new 98aa6bd46 Update README to feature the latest Cayenne version 98aa6bd46 is described below commit 98aa6bd4667e1f3f6dca2b08a3511ec304ca5567 Author: Nikita Timofeev <stari...@gmail.com> AuthorDate: Thu Jun 16 11:04:10 2022 +0300 Update README to feature the latest Cayenne version --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 623abcda7..b3f922461 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Apache Cayenne ============== -[](https://cayenne.apache.org/download/) +[](https://cayenne.apache.org/download/) [](https://app.travis-ci.com/apache/cayenne) @@ -62,24 +62,24 @@ Binary distributions can be downloaded from https://cayenne.apache.org/download/ [](https://cayenne.apache.org/download/) -See tutorial https://cayenne.apache.org/docs/4.1/getting-started-guide/ +See tutorial https://cayenne.apache.org/docs/4.2/getting-started-guide/ ##### Maven plugin -Additionally you can use Cayenne Maven (or [Gradle](#gradle-plugin)) plugin to create model based on existing DB structure. +Additionally, you can use Cayenne Maven (or [Gradle](#gradle-plugin)) plugin to create model based on existing DB structure. Here is example of Cayenne Maven plugin setup that will do it: ```xml <plugin> <groupId>org.apache.cayenne.plugins</groupId> <artifactId>cayenne-maven-plugin</artifactId> - <version>4.1</version> + <version>4.2.RC1</version> <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> - <version>8.0.13</version> + <version>8.0.29</version> </dependency> </dependencies> @@ -104,7 +104,7 @@ Run it: mvn cayenne:cdbimport mvn cayenne:cgen ``` -See tutorial https://cayenne.apache.org/docs/4.1/getting-started-db-first/ +See tutorial https://cayenne.apache.org/docs/4.2/getting-started-db-first/ ##### Gradle plugin @@ -116,8 +116,8 @@ buildscript { mavenCentral() } dependencies { - classpath group: 'org.apache.cayenne.plugins', name: 'cayenne-gradle-plugin', version: '4.1' - classpath 'mysql:mysql-connector-java:8.0.13' + classpath group: 'org.apache.cayenne.plugins', name: 'cayenne-gradle-plugin', version: '4.2.RC1' + classpath 'mysql:mysql-connector-java:8.0.29' } } @@ -157,7 +157,7 @@ gradlew build <dependency> <groupId>org.apache.cayenne</groupId> <artifactId>cayenne-server</artifactId> - <version>4.1</version> + <version>4.2.RC1</version> </dependency> </dependencies> ``` @@ -165,7 +165,7 @@ gradlew build ##### Gradle ```gradle -compile group: 'org.apache.cayenne', name: 'cayenne-server', version: '4.1' +compile group: 'org.apache.cayenne', name: 'cayenne-server', version: '4.2.RC1' // or, if Gradle plugin is used compile cayenne.dependency('server') @@ -218,7 +218,7 @@ context.commitChanges(); ```java List<Painting> paintings = ObjectSelect.query(Painting.class) - .where(Painting.ARTIST.dot(Artist.DATE_OF_BIRTH).lt(LocalDate.of(1900, 1, 1))) + .where(Painting.ARTIST.dot(Artist.DATE_OF_BIRTH).year().lt(1900)) .prefetch(Painting.ARTIST.joint()) .select(context); ``` @@ -274,19 +274,19 @@ Documentation #### Getting Started -https://cayenne.apache.org/docs/4.1/getting-started-guide/ +https://cayenne.apache.org/docs/4.2/getting-started-guide/ #### Getting Started Db-First -https://cayenne.apache.org/docs/4.1/getting-started-db-first/ +https://cayenne.apache.org/docs/4.2/getting-started-db-first/ #### Full documentation -https://cayenne.apache.org/docs/4.1/cayenne-guide/ +https://cayenne.apache.org/docs/4.2/cayenne-guide/ #### JavaDoc -https://cayenne.apache.org/docs/4.1/api/ +https://cayenne.apache.org/docs/4.2/api/ About -----