Dashboard > Apache Cayenne > Browse Space > News Items for
  Apache Cayenne Log In | Sign Up   View a printable version of the current page.  
  News Items for Mar 23, 2006
  2006/03/23

Lots of things have happened since M11. We got accepted into Apache Incubator and if things go as planned, the next milestone will be done from Apache repository (still org.objectstyle.cayenne package names will be preserved in 1.2). 1.2 RoadMap was formalized - the next release will be 1.2 Beta. We formalized committer status of our active contributors (Cris, Tore and Kevin) and Bill Dudney came on board as a new committer.

Now back to the M12 release...

Download Link

Nested DataContexts

The major 1.2 showstopper - nested DataContexts - are more or less finalized. I am still working on documentation, but in short - a child DataContext is created via DataContext.createChildDataContext(). It can be used as a scratchpad for isolating and atomic commit/rollback of object changes to another DataContext. Same as traditional (not nested) DataContext, only changes are "committed" in memory to the parent instead of the database.

For the curious, this required significant changes to the ObjectStore internals. ObjectStore no longer stores database "snapshots" to track object modifications. Instead all changes are recorded in terms of object properties, using GraphDiff abstraction from the org.objectstyle.cayenne.graph package.

Maven2 Bundles

We've made earlier attempts to post Cayenne jars as M2 bundles to Ibiblio repository. Now we are more or less officially committed to distribute Cayenne in Maven format, as our own new development depends on that. Also we fixed badly formatted POM files.

As of the time of this writing M12 bundles may not be available. They are already submitted to ibiblio, so check back in a few hours.

Updated Modeler Icons

Many thanks to Malcolm Edgar for that.

FK Constraints Support on MySQL

If you use auto-adapter (i.e. do not enter adapter explicitly in the Modeler) and your MySQL default table type is INNODB (you can check by running this query: SHOW VARIABLES LIKE 'table_type'), Cayenne will support FK constraints on forward and reverse engineering.

Ingres Database Adapter

Ingres database is now natively supported. There are a few remaining issues with adapter that will be addressed soon.

Full Release Notes

Changes/New Features:

* Nested DataContext commits.

* Modeler features platform-native keyboard shortcuts. I.e. Mac users will no longer have 
  to figure out where the "Ctrl" key is located. Command-S will save the project.

* Added FK constraints support to MySQLAdapter. It is enabled automatically if the AutoAdapter
  detects that InnoDB table type is default. I.e. if you want it to operate in a DB-independent fashion,
  do not expicitly set MySQLAdapter in the Modeler and let Cayenne guess it.

* Support for custom cgen templates located in jar files. Prior to M12 custom templates were only
  accessible if as files in the local filesystem.

* SingleObjectQuery is renamed to ObjectIdQuery to reflect the fact that it supports data rows as well. 
  For documentation see http://objectstyle.org/confluence/display/CAY/ObjectIdQuery

* First cut of the new IngresAdapter. 

Bugs Fixed:

CAY-470	Algorithm for flushing changes from child nested DataContext to parent
CAY-482	there can be only 254 ids created *within the same millisecond
CAY-446	Commit operation should respect existing thread-bound transactions
CAY-448	NPE when shutting down DataDomain
CAY-465	DataDomain deletion results in menus in inconsistent state
CAY-461	Package name not prepended on import
CAY-347	Entity Tabs and Delete button inconsistencies
CAY-464	Hanging/infinite-loop problem when issuing a non-selecting SQL command against Oracle 8.1.6
CAY-449	SingleObjectQuery glitches
CAY-170	Class Generation Bug
CAY-450	Oracle fetch limit syntax conflicts with ordering
CAY-407	JOINT_PREFETCH_SEMANTICS + in-memory DISTINCT = incorrect results
CAY-284	Allow for mix of null and non null attributes for compound FK relationships
CAY-462	Incorrect tool tip on "Create Derived DbEntity"
CAY-463	Improved DbEntity icons
Posted at 23 Mar @ 10:48 AM by Andrus Adamchik | 0 comments

March 2006
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Apr 06, 2006
Feb 13, 2006

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators