You are on page 1of 11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |


Member Login

Register

Lost Password?

search

Download

Buy/Renew

New & Noteworthy

Products

Features

MyEclipse Secure

Support

Docs

WHY MYECLIPSE?

MyEclipse JPA (Java Persistence) Tools

Why Use MyEclipse?


MyEclipse vs. Eclipse

Toplink :: Hibernate Implementations :: OpenJPA

Who Uses MyEclipse?


Customer Testimonials

Tutorials/Demos

NEWS & BLOG

Eclipse OR Tools: Libraries, Wizards, Java class/database mapping and velocity templates
This page presents an overview of JPA features available in MyEclipse (based on MyEclipse 6.0<).
To get a better feel for MyEclipse and to learn more about JPA or other features, please check out the
MyEclipse Educational Materials.

News
MyEclipse Blog
Webinars

Download free trial


JPA Project Configuration
Reverse Engineering Entities and
DAOs From Databases

PARTNERS
Partners and Training
Reseller Network
Product History
Mobile News

SERVICES
Member Services
MyEclipse Road Map

Other Features:
Web 2.0 Tools
JavaScript Debugger
Sw ing UI Designer
Java Persistence Tools
Spring Tools
Struts Designer
XDoclet Support
Eclipse Ajax
Database Tools
Visual JSF
JSP Development
JPA Tutorial
Eclipse Plugin
Web Services
Image Editor
HTML Editor
UML Tools
Application Server
Connectors
Struts Tools
MyEclipse SNAPs
CSS Designer
JavaScript Editor
JSP Development
MyEclipse Features

Advanced Entity Editing and


Validation Tools
Advanced Spring-JPA Tool Integration

JPA Project Configuration


Persistence Providers
MyEclipse provides support for the Toplink Essentials and Hibernate 3.2 JPA providers. Support for OpenJPA is planned.

Adding JPA Capabilities

Database Configuration

Create a persistence unit and associate your project with a database and schema for design-time tool support. The project in the next scree
is being associated with the database driver for the local MyEclipse Derby database.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

1/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

Configure the datasource

You may change a JPA project's database driver association at any time using the Java Persistence properties page. To invoke this
click on the project and select Properties from the context menu. From the Properties dialog shown below, expand the MyEclipse node and
select Java Persistence.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

2/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

Java Persistence properties page

Reverse Engineering Entities and DAOs from Database


Entity Generation
Initiate Entity generation from the context menu of a JPA project. This will launch the JPA Reverse Engineering Wizard.

Entity generation from JPA project


Entity generation can also be initiated from the Database Browser view.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

3/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

Entity generation from DB Table


The reverse engineering process is fully customizable. Using the JPA Reverse Engineering Wizard you can choose the artifacts to
the database tables from which the artifacts will be based.

Customize reverse engineering


Following are several sample snippets of the code generated by the Reverse Engineering Processor.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

4/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

Sample snippets

Advanced Entity Editing Tools


MyEclipse Java Persistence Perspective
The MyEclipse Java Persistence Perspective provides an optimal editor and view layout for JPA oriented tasks.

MyEclipse Java Persistence perspective

JPA Details View


The JPA Details view makes it easy to edit entity annotations.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

5/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

JPA Details view- Select table

JPA Details view - Edit detail

JPA Annotation Table and Column Content Assist

Table Content Assist

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

6/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

JPA annotation column content assist

JPA Entity Validation


Errors in your mapping are detected and displayed in the editor and problems view.

JPA validation errors shown in Java editor


The JPA Entity Validator can be enabled or disabled at the project level.

JPA Validation preferences

Advanced Spring-JPA Integration


Spring 2 Support
When adding JPA Capabilities to a project that already has Spring capabilities or vice versa, you can choose advanced Spring-JPA

level of support enables JPA tools to work with your project's Spring artifacts. Following is a screenshot of the Spring-JPA project configurati
wizard.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

7/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

Adding Spring Capabilities Wizard


Select your primary bean configuration file and customize bean Ids and transaction support.

Configure Spring-JPA support

Reverse Engineering Entities and Spring DAOs from Database

For projects that are configured to support advanced Spring-JPA capabilities, in addition to generating Entity classes from a database schem
Spring compatible DAOs can be generated. During the reverse-engineering process the Spring application context file is updated with genera
bean entries for each DOA class.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

8/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

Generate Spring DAOs.

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

9/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

Generated Spring application context file.

Generated Spring DAO extends from Spring's JpaDaoSupport.

MyEclipse Innovations
The innovation and application of Eclipse technology is Genuitec's sole business. With well over 10
million downloads, our MyEclipse Enterprise Workbench product has grown to be the most popular
and successful Eclipse-based JEE IDE. Our long chain of Eclipse technology innovation includes:
First JSR-045 compliant source-level JSP debugger for Eclipse
First public article explaining that Eclipse could be used as a rich-client platform in early 2002
First commercial RCP applications shipped on Eclipse 2.0, well before the Eclipse 3.0 RCP
First and most comprehensive suite of application server connectors for Eclipse
First 'hot sync' JEE application deployer to enable continuous web development without server restarts
First native JavaScript debugger for Eclipse
First Web 2.0 / Ajax feature-set for Eclipse
Most database connectors supported on Eclipse
First IDE to fully support Hibernate / Spring integration
First full-featured image editor for Eclipse
First Eclipse IDE to offer a low-cost, all-inclusive subscription pricing model
First IDE to integrate NetBeans features into Eclipse
First to create platform-independent RCP applications with SNAPs

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

10/11

4/22/2014

MyEclipse Java Persistence Tools | Toplink | OpenJPA | Hibernate | OR Tools |

MYECLIPSE LINKS

OTHER USEFUL STUFF

ABOUT MYECLIPSE

CONTACT US

Home

Popular Add-Ons

Developers worldwide choose

North American Headquarters

Download

Who's using MyEclipse?

MyEclipse because it is the most

Genuitec, LLC

Buy

Customer Testimonials

affordable and comprehensive

2221 Justin Road #119-340

New & Noteworthy

Documentation

J2EE IDE and Web development

Flower Mound, TX 75028

MyEclipse Blue Edition

Webinars

tool suite for the Eclipse open-

info@genuitec.com

MyEclipse for Spring

Partners and Training

source platform. MyEclipse is the

(+1) 214.614.8328 (direct)

MyEclipse Bling

Reseller Network

Eclipse plugin-based solution for

888.914.6620 (toll free)

MyEclipse Secure

Product History

all your UML, AJAX, Web, Web

Support

Mobile News

Services, J2EE, JSP, XML, Struts,

Features

Member Services

JSF, Java Persistence, EJB,

Contact

MyEclipse Roadmap

extended database support and

(+1) 214.853.4284 (fax)


WE'RE SOCIAL CREATURES

app server integration needs.

2001-2014 Genuitec, LLC. All rights reserved.


Genuitec - Mobilize Your Enterprise Powering MyEclipse, MobiOne, and Secure Delivery Center
Enterprise Java and Mobile Development Tools

Popular searches that lead to MyEclipse: Eclipse IDE Eclipse plugins Java IDE Ajax IDE App Server Migration Secure Eclipse Delivery
Distribute MyEclipse Spring Tools Alternative to Rational
Migrate IBM projects Distribute Eclipse Best Java IDE

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=18

Database Tools

11/11

You might also like