You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by bu...@apache.org on 2016/02/15 19:24:48 UTC
svn commit: r980498 - in /websites/staging/cayenne/trunk/content: ./
2016/02/cayenne-40m3-released.html
Author: buildbot
Date: Mon Feb 15 18:24:47 2016
New Revision: 980498
Log:
Staging update by buildbot for cayenne
Modified:
websites/staging/cayenne/trunk/content/ (props changed)
websites/staging/cayenne/trunk/content/2016/02/cayenne-40m3-released.html
Propchange: websites/staging/cayenne/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Feb 15 18:24:47 2016
@@ -1 +1 @@
-1730588
+1730590
Modified: websites/staging/cayenne/trunk/content/2016/02/cayenne-40m3-released.html
==============================================================================
--- websites/staging/cayenne/trunk/content/2016/02/cayenne-40m3-released.html (original)
+++ websites/staging/cayenne/trunk/content/2016/02/cayenne-40m3-released.html Mon Feb 15 18:24:47 2016
@@ -105,19 +105,19 @@
h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink { visibility: visible }</style>
<h2 id="cayenne-40-milestone-3-released">Cayenne 4.0 Milestone 3 Released<a class="headerlink" href="#cayenne-40-milestone-3-released" title="Permanent link">¶</a></h2>
<p><em>Feb 12, 2016</em> </p>
-<p>This new milestone release has plenty new features, bug fixes and other improvements. Below are just the main highlights. For more details check out the full release notes further down, as well as <a href="https://github.com/apache/cayenne/blob/4.0.M3/docs/doc/src/main/resources/UPGRADE.txt">UPGRADE.txt</a>.</p>
+<p>This new milestone release has plenty of new features, bug fixes and other improvements. Below are just the main highlights. For more details check out the full release notes further down, as well as <a href="https://github.com/apache/cayenne/blob/4.0.M3/docs/doc/src/main/resources/UPGRADE.txt">UPGRADE.txt</a>.</p>
<p>Cayenne can be downloaded from <a href="/download.html">here</a>.</p>
<h3 id="java-7">Java 7<a class="headerlink" href="#java-7" title="Permanent link">¶</a></h3>
<p>Since this milestone minimal Java version is 1.7. If you still need Java 1.6, you can use Cayenne 3.1 or 4.0.M2 until your application is able to upgrade.</p>
<h3 id="java-8-datetime-and-joda-time-support">Java 8 Date/Time and Joda-Time Support<a class="headerlink" href="#java-8-datetime-and-joda-time-support" title="Permanent link">¶</a></h3>
-<p>Cayenne now has two additional modules that contain ExtendedTypes for Java 8 Date/Time and Joda-Time support. You will need to add appropriate maven dependency and then create a module and add it to the ServerRuntime. For example:</p>
+<p>Cayenne now has two additional modules that contain ExtendedTypes for Java 8 Date/Time and Joda-Time support. You will need to add appropriate dependency and then create a coresponding module and add it to the ServerRuntime. For example:</p>
<div class="codehilite"><pre><span class="n">Module</span> <span class="n">java8Module</span> <span class="p">=</span> <span class="n">new</span> <span class="n">CayenneJava8Module</span><span class="p">();</span>
<span class="n">this</span><span class="p">.</span><span class="n">runtime</span> <span class="p">=</span> <span class="n">new</span> <span class="n">ServerRuntime</span><span class="p">(</span>"<span class="n">cayenne</span><span class="o">-</span><span class="n">project</span><span class="p">.</span><span class="n">xml</span>"<span class="p">,</span> <span class="n">java8Module</span><span class="p">);</span>
</pre></div>
<h3 id="improvements-in-query-api">Improvements in Query API<a class="headerlink" href="#improvements-in-query-api" title="Permanent link">¶</a></h3>
-<p>All new fluent query classes (ObjectSelect, SQLSelect, SelectById) have the following basic methods:</p>
+<p>All new fluent query classes (ObjectSelect, SQLSelect, SelectById) have the following new methods:</p>
<ul>
<li><code>List<T> select(ObjectContext context);</code></li>
<li><code>T selectOne(ObjectContext context);</code></li>
@@ -126,14 +126,14 @@ h2:hover > .headerlink, h3:hover > .head
<li><code>ResultIterator<T> iterator(ObjectContext context);</code></li>
<li><code>ResultBatchIterator<T> batchIterator(ObjectContext context, int size);</code></li>
</ul>
-<p>The "old" style SelectQuery is still supported and also includes these methods.</p>
+<p>The "old" style SelectQuery is still supported and also includes these methods. </p>
<p>Also ResultIterator and ResultBatchIterator are both AutoCloseable now. So you will be able to use try-with-resources with them.</p>
<h3 id="non-blocking-datasource">Non-blocking DataSource<a class="headerlink" href="#non-blocking-datasource" title="Permanent link">¶</a></h3>
<p>Default Cayenne DataSource provider is switched to a non-blocking implementation that has a much better concurrency compared to the old version.</p>
-<h3 id="switching-to-dbcp2">Switching to DBCP2<a class="headerlink" href="#switching-to-dbcp2" title="Permanent link">¶</a></h3>
+<h3 id="dbcp2">DBCP2<a class="headerlink" href="#dbcp2" title="Permanent link">¶</a></h3>
<p>DBCPDataSourceFactory is now based on DBCP2 (which is required under Java 1.7 and newer). If you are using it, you will need to take a few steps to upgrade. For more details see <a href="https://github.com/apache/cayenne/blob/4.0.M3/docs/doc/src/main/resources/UPGRADE.txt">UPGRADE.txt</a>.</p>
<h3 id="capturing-a-stream-of-commit-changes">Capturing a stream of commit changes<a class="headerlink" href="#capturing-a-stream-of-commit-changes" title="Permanent link">¶</a></h3>
-<p>Sometimes it is very useful to capture all or parts of "commit log" for commits made through Cayenne (for audit purposes, etc). It has always been a challenge to do it in a consistent manner. We've made a few attempts to solve this before. M3 features the most complete solution. There is a builder API for a special DI module that supports registering post-commit listeners. See <a href="https://github.com/apache/cayenne/blob/4.0.M3/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/postcommit/PostCommitModuleBuilder.java">PostCommitBuilder</a> for details.</p>
+<p>Sometimes it is very useful to capture all or parts of "commit log" for commits made through Cayenne (for audit purposes, etc). It has always been a challenge to do it in a consistent and convenient manner. We've made a few attempts to solve this before. M3 features new and the most comprehensive solution. There is a <a href="https://github.com/apache/cayenne/blob/4.0.M3/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/postcommit/PostCommitModuleBuilder.java">PostCommitBuilder</a>class that helps to create a special DI module with all required extensions for this to work. It allows to register <a href="https://github.com/apache/cayenne/blob/4.0.M3/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/postcommit/PostCommitListener.java">PostCommitListeners</a> that will receive an event on every commit, containing a full commit log object.</p>
<h3 id="a-full-list-of-changes-in-this-release">A full list of changes in this release:<a class="headerlink" href="#a-full-list-of-changes-in-this-release" title="Permanent link">¶</a></h3>
<ul>
<li>CAY-1626 Add JodaTime DateTime support</li>