Pave/Patterns/Crud

From Eclipsepedia

< Pave‎ | Patterns
Jump to: navigation, search

Crud Session Bean Pattern is applicable to entity source files. It creates a session bean and fills it with methods that provide crud actions on an entity plus some additional methods to provide search and paging. It consists of three separate data model operations.

CRUD 1.GIF

First one takes care of creating necessary projects, collect information on which entities CRUD will be generated. Second operation comes directly from WTP. It creates the session bean. The third operation fills the generated bean with necessary methods.

Input parameters are collected through 4 wizard pages. On the first one user can select entities to apply this pattern on.

CRUD 2.GIF

On the second and third information on the session bean is collected.

CRUD 3.GIF

On the final page user selects for which attributes he wants named queries and search methods are created.

CRUD 4.GIF

Crud application pattern extends Crud Session Bean Pattern. It creates UI with jsf pages to test the generated CRUD façade and the jpa structure. It creates an ear project, a web model, installs jsf façade to it and registers navigation rules and beans in the faces-config.xml.

CRUD 5.GIF

Through the generated UI user can search, create and delete rows, or edit an existing one.

CRUD 6.GIF

CRUD 7.GIF