Repository: cayenne-website Updated Branches: refs/heads/master 172cd6f2a -> ecbc2ebc5
http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.0/upgrade-guide.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.0/upgrade-guide.html b/src/main/site/content/docs/4.0/upgrade-guide.html new file mode 100644 index 0000000..d266837 --- /dev/null +++ b/src/main/site/content/docs/4.0/upgrade-guide.html @@ -0,0 +1,309 @@ +--- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +title: "Guide to 4.0 Features" +description: "This guide highlights the new features and changes introduced in Apache Cayenne 4.0" +cayenneVersion: "4.0" +docsMenuTitle: "Upgrade Guide" +weight: 50 +--- +<div class="sect1"> + <h2 id="guide-to-4-0-features"><a class="anchor" href="#guide-to-4-0-features"></a>1. Guide to 4.0 Features</h2> + <div class="sectionbody"> + <div class="paragraph"> + <p>This guide highlights the new features and changes introduced in Apache Cayenne 4.0. For a full list of changes consult RELEASE-NOTES.txt included in Cayenne download. For release-specific upgrade instructions check UPGRADE.txt.</p> + </div> + <div class="sect2"> + <h3 id="java-version"><a class="anchor" href="#java-version"></a>1.1. Java Version</h3> + <div class="paragraph"> + <p>Minimum required JDK version is 1.7 or newer. Cayenne 4.0 is fully tested with Java 1.7, 1.8.</p> + </div> + <div class="paragraph"> + <p>The examples below often use Java 8 syntax. But those same examples should work without lambdas just as well.</p> + </div> + </div> + <div class="sect2"> + <h3 id="cayenne-configuration"><a class="anchor" href="#cayenne-configuration"></a>1.2. Cayenne Configuration</h3> + <div class="sect3"> + <h4 id="serverruntimebuilder"><a class="anchor" href="#serverruntimebuilder"></a>ServerRuntimeBuilder</h4> + <div class="paragraph"> + <p>Cayenne 3.1 introduced dependency injection and ServerRuntime. 4.0 provides a very convenient utility to create a custom runtime with various extensions. This reduces the code needed to integrate Cayenne in your environment to just a few lines and no boilerplate. E.g.:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">ServerRuntime runtime = ServerRuntime.builder("myproject") + .addConfigs("cayenne-project1.xml", "cayenne-project2.xml") + .addModule(binder -> binder.bind(JdbcEventLogger.class).toInstance(myLogger)) + .dataSource(myDataSource) + .build();</code></pre> + </div> + </div> + </div> + <div class="sect3"> + <h4 id="mapping-free-serverruntime"><a class="anchor" href="#mapping-free-serverruntime"></a>Mapping-free ServerRuntime</h4> + <div class="paragraph"> + <p>ServerRuntime can now be started without any ORM mapping at all. This is useful in situations when Cayenne is used as a stack to execute raw SQL, in unit tests, etc.</p> + </div> + </div> + <div class="sect3"> + <h4 id="di-container-decorators"><a class="anchor" href="#di-container-decorators"></a>DI Container Decorators</h4> + <div class="paragraph"> + <p>In addition to overriding services in DI container, Cayenne now allows to supply decorators. True to the "smallest-footprint" DI philosophy, decorator approach is very simple and does not require proxies or class enhancement. Just implement the decorated interface and provide a constructor that takes a delegate instance being decorated:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">public class MyInterfaceDecorator implements MyInterface { + + private MyInterface delegate; + + public MockInterface1_Decorator3(@Inject MyInterface delegate) { + this.delegate = delegate; + } + + @Override + public String getName() { + return "<" + delegate.getName() + ">"; + } +} + +Module module = binder -> + binder.decorate(MyInterface.class).before(MyInterfaceDecorator.class);</code></pre> + </div> + </div> + </div> + </div> + <div class="sect2"> + <h3 id="framework-api"><a class="anchor" href="#framework-api"></a>1.3. Framework API</h3> + <div class="sect3"> + <h4 id="fluent-query-api"><a class="anchor" href="#fluent-query-api"></a>Fluent Query API</h4> + <div class="paragraph"> + <p>Fluent Query API is one of the most exciting new features in Cayenne 4.0. This syntax is "chainable" so you can write query assembly and execution code on one line. The most useful fluent queries are ObjectSelect, SQLSelect and SelectById:</p> + </div> + <div class="sect4"> + <h5 id="objectselect"><a class="anchor" href="#objectselect"></a>ObjectSelect</h5> + <div class="paragraph"> + <p>A "chainable" analog of SelectQuery.</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">Artist a = ObjectSelect + .query(Artist.class) + .where(Artist.ARTIST_NAME.eq("Picasso")) + .selectOne(context);</code></pre> + </div> + </div> + </div> + <div class="sect4"> + <h5 id="columnselect"><a class="anchor" href="#columnselect"></a>ColumnSelect</h5> + <div class="paragraph"> + <p>This query allows you directly access individual properties of Objects and use functions (including aggregate) via type-safe API.</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">List<String> names = ObjectSelect + .columnQuery(Artist.class, Artist.ARTIST_NAME) + .where(Artist.ARTIST_NAME.length().gt(6)) + .select(context);</code></pre> + </div> + </div> + </div> + <div class="sect4"> + <h5 id="sqlselect"><a class="anchor" href="#sqlselect"></a>SQLSelect</h5> + <div class="paragraph"> + <p>A "chainable" analog of SQLTemplate used specifically to run selecting raw SQL:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">List<Long> ids = SQLSelect + .scalarQuery(Long.class, "SELECT ARTIST_ID FROM ARTIST ORDER BY ARTIST_ID") + .select(context);</code></pre> + </div> + </div> + </div> + <div class="sect4"> + <h5 id="selectbyid"><a class="anchor" href="#selectbyid"></a>SelectById</h5> + <div class="paragraph"> + <p>Thereâs really no good analog of SelectById in Cayenne prior to 4.0. Previously available ObjectIdQuery didnât support half of the features of SelectById (e.g. caching consistent with other queries, prefetches, etc.) :</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">Artist a = SelectById + .query(Artist.class, 3) + .useLocalCache("g1") + .selectOne(context)</code></pre> + </div> + </div> + </div> + </div> + <div class="sect3"> + <h4 id="objectcontext"><a class="anchor" href="#objectcontext"></a>ObjectContext</h4> + <div class="sect4"> + <h5 id="callback-based-object-iterator"><a class="anchor" href="#callback-based-object-iterator"></a>Callback-based Object Iterator</h5> + <div class="paragraph"> + <p>ObjectContext now features a simpler way to iterate over large result sets, based on callback interface that can be implemented with a lambda:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">SelectQuery<Artist> q = new SelectQuery<Artist>(Artist.class); + +context.iterate(q, (Artist a) -> { + // do something with the object... + ... +});</code></pre> + </div> + </div> + </div> + </div> + <div class="sect3"> + <h4 id="generics-in-expressions-and-queries"><a class="anchor" href="#generics-in-expressions-and-queries"></a>Generics in Expressions and Queries</h4> + <div class="paragraph"> + <p>We finished the work of "genericizing" Cayenne APIs started in 3.1. Now all APIs dealing with persistent objects (Expressions, Queries, ObjectContext, etc.) support generics of Persistent object type or attribute property type.</p> + </div> + </div> + <div class="sect3"> + <h4 id="property-api"><a class="anchor" href="#property-api"></a>Property API</h4> + <div class="paragraph"> + <p>Persistent superclasses (_MyEntity) now contain a set of static Property<T> variables generated from the model. These metadata objects make possible to create type-safe Expressions and other query parts.</p> + </div> + </div> + <div class="sect3"> + <h4 id="positional-parameter-bindings"><a class="anchor" href="#positional-parameter-bindings"></a>Positional Parameter Bindings</h4> + <div class="paragraph"> + <p>Expressions and SQLTemplate traditionally supported binding of parameters by name as a map. Cayenne 4.0 introduces a very easy form of positional bindings. It works with the same named template format, only parameters are bound by position, left-to-right. Here we showing a more complex example with the same parameter name being used more than once in the query:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">// two distinct names, 3 positional parameters. +// "price" is set to 23, "maxPrice" - to 50 +Expression e = ExpressionFactory.exp( + "price = $price or averagePrice = $price and maxPrice = $maxPrice", 23, 50);</code></pre> + </div> + </div> + <div class="paragraph"> + <p>This API is supported in Expressions, SQLTemplate as well as new SQLSelect and can be used interchnageably with named parameters with a single template flavor.</p> + </div> + </div> + <div class="sect3"> + <h4 id="improved-transaction-api"><a class="anchor" href="#improved-transaction-api"></a>Improved Transaction API</h4> + <div class="paragraph"> + <p>Transaction factory is now setup via DI (instead of being configured in the Modeler). Thereâs a utility method on ServerRuntime to perform multiple operations as one transaction:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">runtime.performInTransaction(() -> { + // ... do some changes + context.commitChanges(); + + // ... do more changes + context.commitChanges(); + + return true; +});</code></pre> + </div> + </div> + </div> + <div class="sect3"> + <h4 id="transparent-database-cryptography-with-cayenne-crypto-module"><a class="anchor" href="#transparent-database-cryptography-with-cayenne-crypto-module"></a>Transparent Database Cryptography with "cayenne-crypto" Module</h4> + <div class="paragraph"> + <p>Cayenne includes a new module called "cayenne-crypto" that enables transparent cryptography for designated data columns. This is a pretty cool feature that allows to enable encryption/decryption of your sensitive data pretty much declaratively using your regular DB storage. Encrypted values can be stored in (VAR)BINARY and (VAR)CHAR columns. Currently "cayenne-crypto" supports AES/CBC/PKCS5Padding encryption (though other cyphers can be added). It also supports encrypted data compression. Here is an example of building a crypto DI module that can be added to ServerRuntime:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">Module cryptoExtensions = CryptoModule.extend() + .keyStore("file:///mykeystore", "keystorepassword".toCharArray(), "keyalias") + .compress() + .module();</code></pre> + </div> + </div> + </div> + </div> + <div class="sect2"> + <h3 id="cayennemodeler"><a class="anchor" href="#cayennemodeler"></a>1.4. CayenneModeler</h3> + <div class="sect3"> + <h4 id="improved-ui"><a class="anchor" href="#improved-ui"></a>Improved UI</h4> + <div class="paragraph"> + <p>CayenneModeler features a number of UI improvements. Attributes and relationships are now edited in the same view (no need to switch between the tabs). Project tree allows to easily filter elements by type and quickly collapse the tree.</p> + </div> + </div> + <div class="sect3"> + <h4 id="dropped-support-for-mapping-listeners"><a class="anchor" href="#dropped-support-for-mapping-listeners"></a>Dropped Support for Mapping Listeners</h4> + <div class="paragraph"> + <p>Managing listeners in the DataMap XML model is counterproductive and confusing, so support for listeners was removed from both the XML and the Modeler. If you previously had listeners mapped in the model, annotate their callback methods, and perform listener registration in the code:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">runtime.getDataDomain().addListener(myListener);</code></pre> + </div> + </div> + <div class="paragraph"> + <p>or via DI:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-java java" data-lang="java">Module module = binder -> ServerModule.contributeDomainListeners(myListener);</code></pre> + </div> + </div> + <div class="paragraph"> + <p>Entity callbacks on the other hand are managed in the Modeler as before.</p> + </div> + </div> + </div> + <div class="sect2"> + <h3 id="build-tools"><a class="anchor" href="#build-tools"></a>1.5. Build Tools</h3> + <div class="sect3"> + <h4 id="cdbimport"><a class="anchor" href="#cdbimport"></a>cdbimport</h4> + <div class="paragraph"> + <p>"cdbimport" has evolved from an experiment to a full-featured production tool that significantly reduces (and sometimes eliminates) the need for manual maintenance of the DataMaps in CayenneModeler. Two improvements made this possible. First, smart merge algorithm will ensure that custom changes to the model are not overridden on subsequent runs of "cdbimport". Second, the mechanism for specifing DB reverse-engineering parameters, such as name filtering, is made much more powerful with many new options. E.g. we started supporting filters by catalogs and schemas, table name filters can be added per catalog/schema or at the top level, etc.</p> + </div> + </div> + <div class="sect3"> + <h4 id="cgen"><a class="anchor" href="#cgen"></a>cgen</h4> + <div class="paragraph"> + <p>As was mentioned above, cgen now includes Property<T> static variables for expression building. It is also made smarter about its defaults for "destDir" and "superPkg".</p> + </div> + </div> + <div class="sect3"> + <h4 id="gradle-plugin"><a class="anchor" href="#gradle-plugin"></a>Gradle Plugin</h4> + <div class="paragraph"> + <p>Cayenne now provides itâs own Gradle Plugin that allows you easily integrate cdbimport and cgen tools into your build process. Here is example of itâs usage:</p> + </div> + <div class="listingblock"> + <div class="content"> + <pre class="highlight"><code class="language-Groovy Groovy" data-lang="Groovy">buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath group: 'org.apache.cayenne.plugins', name: 'cayenne-gradle-plugin', version: '4.0.B2' + } +} + +apply plugin: 'org.apache.cayenne' + +cayenne.defaultDataMap 'datamap.map.xml' + +dependencies { + compile cayenne.dependency('server') + compile cayenne.dependency('java8') +}</code></pre> + </div> + </div> + </div> + </div> + </div> +</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.0/upgrade-guide.toc.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.0/upgrade-guide.toc.html b/src/main/site/content/docs/4.0/upgrade-guide.toc.html new file mode 100644 index 0000000..3e86c48 --- /dev/null +++ b/src/main/site/content/docs/4.0/upgrade-guide.toc.html @@ -0,0 +1,15 @@ +<div id="toc" class="toc toc-side"> + <div id="toctitle"> + Table of Contents + </div> + <ul class="sectlevel1 nav"> + <li><a href="#guide-to-4-0-features" class="nav-link">1. Guide to 4.0 Features</a> + <ul class="sectlevel2 nav"> + <li><a href="#java-version" class="nav-link">1.1. Java Version</a></li> + <li><a href="#cayenne-configuration" class="nav-link">1.2. Cayenne Configuration</a></li> + <li><a href="#framework-api" class="nav-link">1.3. Framework API</a></li> + <li><a href="#cayennemodeler" class="nav-link">1.4. CayenneModeler</a></li> + <li><a href="#build-tools" class="nav-link">1.5. Build Tools</a></li> + </ul> </li> + </ul> +</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.1/cayenne-guide.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.1/cayenne-guide.html b/src/main/site/content/docs/4.1/cayenne-guide.html index 48edb9e..991ad4a 100644 --- a/src/main/site/content/docs/4.1/cayenne-guide.html +++ b/src/main/site/content/docs/4.1/cayenne-guide.html @@ -28,22 +28,6 @@ menu: --- -<div id="preamble"> - <div class="sectionbody"> - <div class="paragraph"> - <p><span class="small">Copyright © 2011-2017 Apache Software Foundation and individual authors</span></p> - </div> - <div class="paragraph"> - <div class="title"> - License - </div> - <p><span class="small"><em>Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href="http://www.apache.org/licenses/LICENSE-2.0" class="bare">http://www.apache.org/licenses/LICENSE-2.0</a></em></span></p> - </div> - <div class="paragraph"> - <p><span class="small"><em>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</em></span></p> - </div> - </div> -</div> <div class="sect1"> <h2 id="object-relational-mapping-with-cayenne"><a class="anchor" href="#object-relational-mapping-with-cayenne"></a>1. Object Relational Mapping with Cayenne</h2> <div class="sectionbody"> http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.1/getting-started-db-first.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.1/getting-started-db-first.html b/src/main/site/content/docs/4.1/getting-started-db-first.html index 4938a98..2e71055 100644 --- a/src/main/site/content/docs/4.1/getting-started-db-first.html +++ b/src/main/site/content/docs/4.1/getting-started-db-first.html @@ -27,22 +27,6 @@ menu: parent: docs name: "Database First tutorial (4.1)" --- -<div id="preamble"> - <div class="sectionbody"> - <div class="paragraph"> - <p><span class="small">Copyright © 2011-2017 Apache Software Foundation and individual authors</span></p> - </div> - <div class="paragraph"> - <div class="title"> - License - </div> - <p><span class="small"><em>Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href="http://www.apache.org/licenses/LICENSE-2.0" class="bare">http://www.apache.org/licenses/LICENSE-2.0</a></em></span></p> - </div> - <div class="paragraph"> - <p><span class="small"><em>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</em></span></p> - </div> - </div> -</div> <div class="sect1"> <h2 id="_getting_started_db_first_part1"><a class="anchor" href="#_getting_started_db_first_part1"></a>1. Setup</h2> <div class="sectionbody"> http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.1/getting-started-guide.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.1/getting-started-guide.html b/src/main/site/content/docs/4.1/getting-started-guide.html index e830c9f..38841e1 100644 --- a/src/main/site/content/docs/4.1/getting-started-guide.html +++ b/src/main/site/content/docs/4.1/getting-started-guide.html @@ -27,22 +27,6 @@ menu: parent: docs name: "Getting Started (4.1)" --- -<div id="preamble"> - <div class="sectionbody"> - <div class="paragraph"> - <p><span class="small">Copyright © 2011-2017 Apache Software Foundation and individual authors</span></p> - </div> - <div class="paragraph"> - <div class="title"> - License - </div> - <p><span class="small"><em>Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href="http://www.apache.org/licenses/LICENSE-2.0" class="bare">http://www.apache.org/licenses/LICENSE-2.0</a></em></span></p> - </div> - <div class="paragraph"> - <p><span class="small"><em>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</em></span></p> - </div> - </div> -</div> <div class="sect1"> <h2 id="setting-up-the-environment"><a class="anchor" href="#setting-up-the-environment"></a>1. Setting up the environment</h2> <div class="sectionbody"> http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.1/getting-started-rop.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.1/getting-started-rop.html b/src/main/site/content/docs/4.1/getting-started-rop.html index 4c939c0..cf93e98 100644 --- a/src/main/site/content/docs/4.1/getting-started-rop.html +++ b/src/main/site/content/docs/4.1/getting-started-rop.html @@ -22,22 +22,6 @@ cayenneVersion: "4.1" docsMenuTitle: "Getting Started ROP" weight: 40 --- -<div id="preamble"> - <div class="sectionbody"> - <div class="paragraph"> - <p><span class="small">Copyright © 2011-2017 Apache Software Foundation and individual authors</span></p> - </div> - <div class="paragraph"> - <div class="title"> - License - </div> - <p><span class="small"><em>Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href="http://www.apache.org/licenses/LICENSE-2.0" class="bare">http://www.apache.org/licenses/LICENSE-2.0</a></em></span></p> - </div> - <div class="paragraph"> - <p><span class="small"><em>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</em></span></p> - </div> - </div> -</div> <div class="sect1"> <h2 id="prerequisites"><a class="anchor" href="#prerequisites"></a>1. Prerequisites</h2> <div class="sectionbody"> http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.1/upgrade-guide.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.1/upgrade-guide.html b/src/main/site/content/docs/4.1/upgrade-guide.html new file mode 100644 index 0000000..40cdbde --- /dev/null +++ b/src/main/site/content/docs/4.1/upgrade-guide.html @@ -0,0 +1,39 @@ +--- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +title: "Guide to 4.1 Features" +description: "This guide highlights the new features and changes introduced in Apache Cayenne 4.1" +cayenneVersion: "4.1" +docsMenuTitle: "Upgrade Guide" +weight: 50 +--- + + +<div class="sect1"> + <h2 id="java-version"><a class="anchor" href="#java-version"></a>1. Java Version</h2> + <div class="sectionbody"> + <div class="paragraph"> + <p>Minimum required JDK version is 1.8 or newer. Cayenne 4.1 is fully tested with Java 1.8 and 9.</p> + </div> + </div> +</div> +<div class="sect1"> + <h2 id="new-features"><a class="anchor" href="#new-features"></a>2. New Features</h2> + <div class="sectionbody"> + </div> +</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ecbc2ebc/src/main/site/content/docs/4.1/upgrade-guide.toc.html ---------------------------------------------------------------------- diff --git a/src/main/site/content/docs/4.1/upgrade-guide.toc.html b/src/main/site/content/docs/4.1/upgrade-guide.toc.html new file mode 100644 index 0000000..9b4b90b --- /dev/null +++ b/src/main/site/content/docs/4.1/upgrade-guide.toc.html @@ -0,0 +1,9 @@ +<div id="toc" class="toc toc-side"> + <div id="toctitle"> + Table of Contents + </div> + <ul class="sectlevel1 nav"> + <li><a href="#java-version" class="nav-link">1. Java Version</a></li> + <li><a href="#new-features" class="nav-link">2. New Features</a></li> + </ul> +</div> \ No newline at end of file