ddelizia
ddelizia

Reputation: 1571

Generate CRUD from JPA entities

I have a web application developed with spring mvc and for the persistence I use JPA (Hibernate implementation) and I woluld like to add a CRUD GUI to that application.

Do you know some framework that allow me to generate in my project the CRUD GUI from the JPA entities?

Thanks in advance for your help

Upvotes: 5

Views: 5644

Answers (5)

Yann Demel
Yann Demel

Reputation: 11

You can take a look at crud-rest-gen project which explains how to use the crud-maven-plugin to generate :

  • the CRUD Rest API
  • the documentation of the API
  • the HTML5/AngularJS CRUD Administration UI
  • the Rest API for retrieving audit information and associated unit tests if you use Hibernate Envers to audit your entities

All you have to provide is the data model containing the JPA entities.

Many samples are provided, based on the Spring PetClinic data model.

Upvotes: 0

lgu
lgu

Reputation: 2460

Telosys Tools code generator could help you.

It generates Spring MVC web app with CRUD screens

Let's have a look at the tuto : https://sites.google.com/site/telosystutorial/

Web site : https://sites.google.com/site/telosystools/

Upvotes: 3

max-dev
max-dev

Reputation: 733

You should look at LightAdmin pluggable administration interface for Java web applications. It provides exactly what you're looking for and it's based on the same technology stack.

The only thing you will need to do is to download a jar or declare Maven dependency, enable your domain administration through web.xml (point to package containing your JPA entities) and create @Administration configuration for the entity.

Upvotes: 3

Kevin Welker
Kevin Welker

Reputation: 7937

You could try the Java version of Play! framework: see the following link

Upvotes: 0

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340763

You might want to have a look at , unfortunately this means switching language and whole stack. In Java land there is . Finally check out umbrella of projects, specifically for rapid DAO generation and for generating REST interfaces.

Once you have a REST interface, consider JavaScript library for integrated listing/paging/full CRUD based on REST AJAX API. See my article and sources for example.

Upvotes: 3

Related Questions