Eclipse News Desk
Eclipse JSR220 Tooling Project Delivers Second Major Milestone
ORM Tool Provides Comprehensive Mapping Capabilities
Sep. 15, 2005 12:00 AM
Digg This!
The Eclipse JSR220 project provides tooling support for JSR220 specification runtimes. The projects Milestone 2 release provides Generic EJB 3 runtime support and a specific extension for Hibernates EJB 3 preview. The release provides runtime meta data configuration with forward engineering and meet-in-middle mapping using JSR220 annotations.
This is the first major release of a functional ORM tool for the Eclipse community that provides comprehensive mapping capabilities using a code base that is properly integrated with the Eclipse Platform code including WTP, DTP, EMF, GEF, etc. There was quite a lot of work to get the tooling properly integrated with Eclipse EMF models, SWT GUIs, etc., and future work is expected to progress much faster now that the foundation of the implementation is set.
Features Include:
Project Configuration
Any Eclipse project can be enabled as a persistence project allowing appropriate JSR220 artifacts to be packed with the projects deployment artifacts.
Runtime Configuration
There are many JSR-220 runtime implementations popping up from various vendors and the tooling allows developers to configure a vendor runtime of choice. Currently, there are plugins for Hibernate and generic JSR220 runtimes. Vendors may customize the generic plugin for their runtime vendor extensions.
Connection Configuration
Database connections can be configured using the Database Explorer and those connections can be used to explore existing relational schema. The connection configuration supports all of the WTP-RDB supported databases and has been tested with Derby and MySQL.
Forward Engineering
Allows the creation of DDL that is specific to the project configured connection type based on either default specification mappings or customized mappings that can be created using Live ER diagrams, Visual Mapping Editors, direct editing or source code annotations. The DDL can then be applied to target databases in whole or in part to define the schema.
Annotation Support
Support for most JSR220 annotations including:
* Id (simple and complex)
* Generators (auto, identity, table sequence, more)
* Inheritance (Single_Table, Joined)
* Entity, Embeddable, EmbeddableSuperClass, AttributeOverrides
* Basic, Column, JoinColumn
* ManyToOne, OneToOne, OneToMany, ManyToMany
* Discriminators, Eager/Lazy loading, Cascading, mappedBy
Meet-in-Middle mapping
Support for mapping to existing relational schema in projects' target connection. Existing schema is available via Live ER diagrams that allow pop up selection of tables, drag and drop of column to attributes for mapping, and editable column properties.
About Eclipse News DeskEclipse News Desk gathers and summarizes news and information from newspapers, magazines, Web sites, newsletters, and online communitities likely to be of interest to those who support the move toward a language-neutral, vendor-neutral, open-source platform for the development of integrated tools.