| // 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 |
| // |
| // https://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. |
| |
| include::../var.adoc[] |
| |
| [[ext-project-compatibility]] |
| === Project compatibility extension |
| |
| Since version 4.1 Cayenne doesn't allow to load project XML files from previous versions as this can lead to unexpected |
| errors in runtime. This module allows to use project files from older versions performing their upgrade on the fly |
| (without modifying files). This can be useful when using Cayenne models from third-party libraries in your app. |
| |
| NOTE: You should prefer explicit project upgrade via Cayenne Modeler. |
| |
| ==== Maven |
| |
| [source, XML,subs="verbatim,attributes"] |
| ---- |
| <dependency> |
| <groupId>org.apache.cayenne</groupId> |
| <artifactId>cayenne-project-compatibility</artifactId> |
| <version>{version}</version> |
| </dependency> |
| ---- |
| |
| ==== Gradle |
| |
| [source, Groovy,subs="verbatim,attributes"] |
| ---- |
| compile 'org.apache.cayenne:cayenne-project-compatibility:{version}' |
| ---- |
| |
| ==== Usage |
| |
| This module doesn't require any additional setup. |
| |