Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Channels ▼

Web Development

Apache Cayenne v3.1 Spicier and Hotter All Round

The Apache Software Foundation (ASF) has announced the availability of Apache Cayenne v3.1, the open source Java framework for object relational mapping (ORM), persistence, and caching.

"With the launch of version 3.1, Apache Cayenne has continued to evolve its mature 12 year-old library by introducing 125 new features," said Andrus Adamchik, vice president of Apache Cayenne.

Cayenne is an enterprise Java ORM with support for caching, three-tier persistence, object lifecycles and workflow, inheritance, paging, on demand faulting and auditing. As an object relational mapping library, Cayenne integrates applications to any SQL database available today.

The proposition from the Foundation is that this will free solutions from being locked into one database engine. At the same time, it improves performance through paging and caching, enforces data integrity, and makes it faster (says the Foundation) for developers to build a reliable application.

Notable new features and improvements include easier configuration and embedding in any type of application; and a highly configurable runtime, enabled by one of the smallest built-in Dependency Injection (DI) containers written specifically for Cayenne (and that co-exists with other DI/IoC, such as Apache Tapestry).

"It is also very easy to create more than one runtime, which opens interesting possibilities like multi-tenancy; nearly all components now pluggable, making it very easy to create more than one runtime and easily change or extend internals of the stack declaratively — from cache provider to SQL log format to DataSource lookup strategy and much more," said the Foundation.

Different aspects of an application can now be modeled in separate mapping projects and combined in runtime as needed. As a result, Cayenne projects can be included in libraries that make no assumptions about the target use. Cayenne ships with a "cayenne-lifecycle" module that provides a few common examples of such workflows activated on data changes: data modifications audit, precision cache invalidation, and performance optimizations for improved overall concurrency.

"Developers who are seeking an alternate to EJB/Hibernate might find Cayenne's graphical modeler, reverse database engineering, easy-to-use query API, and flexible context model a joy to work with," said Aristedes Maniatis, member of the Apache Cayenne Project Management Committee and CEO of ish.

In addition, Apache Cayenne's HTML documentation and tutorials have been completely revised and available in PDF for the first time.

Related Reading

More Insights

Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.