You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2017/03/06 17:27:46 UTC
svn commit: r1785695 -
/cayenne/site/cms/trunk/content/2017/03/cayenne-40M5-released.mdtext
Author: aadamchik
Date: Mon Mar 6 17:27:46 2017
New Revision: 1785695
URL: http://svn.apache.org/viewvc?rev=1785695&view=rev
Log:
minor release announcement edits
Modified:
cayenne/site/cms/trunk/content/2017/03/cayenne-40M5-released.mdtext
Modified: cayenne/site/cms/trunk/content/2017/03/cayenne-40M5-released.mdtext
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/content/2017/03/cayenne-40M5-released.mdtext?rev=1785695&r1=1785694&r2=1785695&view=diff
==============================================================================
--- cayenne/site/cms/trunk/content/2017/03/cayenne-40M5-released.mdtext (original)
+++ cayenne/site/cms/trunk/content/2017/03/cayenne-40M5-released.mdtext Mon Mar 6 17:27:46 2017
@@ -47,7 +47,7 @@ These great additions to Fluent API are
*Aggregate Functions*
// easy way to select count
- long count = ObjectSelect.query(Artist.class).count();
+ long count = ObjectSelect.query(Artist.class).count().selectOne(context);
*GROUP BY .. HAVING*
@@ -55,6 +55,7 @@ These great additions to Fluent API are
// Object[0] is a name (String)
// Object[1] is a price (Double)
+ // GROUP BY clause is generated automatically based on the query semantics
List<Object[]> nameAndMinPrice = ObjectSelect.query(Artist.class)
.columns(Artist.ARTIST_NAME, minPrice)
.having(minPrice.gt(2000.0))
@@ -72,7 +73,7 @@ These great additions to Fluent API are
We pushed DB reverse engineering functionality further. This time in addition to clearing bugs and perform smoother importing
we changed cdbimport plugin configuration to make it clearer and ready for future improvements we have in mind.
-The plugin itself has changed it's name to *"cayenne-maven-plugin"* and you can use short commands like following:
+The plugin itself has changed it's name to *"cayenne-maven-plugin"*, so now you can use short commands like the following:
mvn cayenne:cdbimport