jpa code generation via myeclipse

Post on 23-Dec-2014

2.722 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

+

JPA Code Generation via MyEclipseAlbert Guojunyuo@gmail.com

+Add JPA Capabilities to your MyEclipse Project

+

+

Specify datasource

+JPA Wizard will generate persistence.xml automatically

+Change view to MyEclipse Database Explorer

+Selected specified table to do code generation

+

Click JPA Reverse Engineering

+Choose the destination for code generation and its package name

Generate entities first and update entities into persistence.xml simultaneously

+Choose the destination for code generation and its package name

Generate DAOs (Data Access Object)

+Artifacts

It will generate CRUD in DAOs

+If schema changes…

top related