Author: buildbot Date: Mon Feb 15 18:18:39 2016 New Revision: 980496 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:18:39 2016 @@ -1 +1 @@ -1730535 +1730588 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:18:39 2016 @@ -1,7 +1,7 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> -<title> | Apache Cayenne</title> +<title>Cayenne 4.0 Milestone 3 Released | Apache Cayenne</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="keywords" content=" apache cayenne, object relational mapping, open source orm, orm"> <meta name="description" content=" Apache Cayenne is a powerful, full-featured, open-source object relational mapping framework created for developers working with relational databases."> @@ -105,12 +105,12 @@ 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 read upgrade-guide.pdf and check out the full release notes further down.</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>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 release minimal Java version is 1.7. If you are still need Java 1.6, you can use Cayenne 3.1 or 4.0.M2 until your application is able to upgrade.</p> +<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 for Java 8 Date/Time and Joda-Time support accordingly. All you need is to add appropriate maven dependency and then create 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 maven dependency and then create a 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> @@ -126,12 +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 this methods.</p> -<p>Also it should be noted that ResultIterator and ResultBatchIterator are both AutoCloseable now. So you are able to use try-with-resources with them.</p> -<h3 id="dbcp2-support">DBCP2 Support<a class="headerlink" href="#dbcp2-support" 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 upgrade-guide.pdf.</p> -<h3 id="connection-pool">Connection pool<a class="headerlink" href="#connection-pool" title="Permanent link">¶</a></h3> +<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> +<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> <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>