Is there a CRUD generator utility in Java (any infrastructure), for example, "Forests in Rails"?

Is there a CRUD generator utility in Java, for example, "Forests in Rails"? It can be in any framework or even in simple servlets. Must generate controllers + views in jsp, not just DAO code ...

+43
java ruby-on-rails crud scaffolding
Jan 05 '09 at 21:26
source share
21 answers

Spring Roo seems to be exactly what you are looking for: CRUD code generation, spits out pure Java code that can be made tun completely independent of the structure.

+24
Jan 08 '10 at 10:20
source share

Grails has scaffolding.

+14
Jan 05 '09 at 21:37
source share

See the Telosys Tools Eclipse plugin at http://www.telosys.org/

The plugin connects to the database, creates a lightweight repository, allows you to configure the repository if necessary, and generates Java Beans, DAO, XML converters, ScreenMaps (JSP), etc.

You can create a Data Centric web application in a few minutes

+11
Jun 24 2018-11-11T00:
source share

JBoss Seam has a scripting utility called seam-gen that will create scaffolding:

http://docs.jboss.org/seam/1.1BETA2/reference/en/html/gettingstarted.html

+8
Jan 05 '09 at 23:38
source share

AppFuse .

It is very powerful, it may be too strong for the task in question, but it does it well.

+6
Jan 08 '10 at
source share

Use JHipster . It is built on the popular yeoman scaffold tool. It not only generates your back end, including controllers, dao, security, user management, system and API metrics, logging, etc. Using Spring Boot and Spring MVC 4, but it also generates your interface using angular js. You also get useful properties, such as grunts, karma and gazebo, fully customized and ready to use! Along with this, you also get access to database versions!

It also has helper generators for generating domain objects that generate your java and corresponding front end for data management.

It takes 10 minutes to fully launch webapp.

+6
Jan 19 '15 at 12:10
source share

Netbeans has something like this.

There is a demo here: http://www.netbeans.org/kb/55/persistence-demo.html

+5
Jan 05 '09 at 21:33
source share

There krank in google code. I haven't tried it yet, but it looks promising.

+5
Mar 13 '09 at 14:17
source share

This may be a bit out of context, but there is Jboss Forge for Java EE . There is an example that uses it.

+5
Nov 06 '12 at 18:21
source share

I came across this question and tried many suggested answers. I ended up finding Lightadmin . It does not generate CRUD code, but provides a good interface for Entity classes with very small code. To make a User object accessible through the Lightadmin web interface, it needs only two changes in the XML files, and then the UserAdministration class:

 public class UserAdministration extends AdministrationConfiguration<User> { /* empty */ } 

You can customize the field names (and probably much more) in this Administration class, but I believe that it is already very useful without further configuration. The Getting Started Guide really shows how simple it is. After these simple steps, you can open the admin interface via http://localhost:8080/TestApp/admin .

+5
Dec 10 '13 at 21:37
source share

Look at tools such as:

MetaWidget http://www.metawidget.org/

ISIS http://incubator.apache.org/isis/index.html (formerly Naked Objects)

They generate the user interface on the fly, but customize the user interface if necessary.

Much better than code generation.

+4
Nov 09 '11 at 17:02
source share

Since the question was asked, several frameworks appeared for Java. Check out Spring Roo and the Play Framework . There is also Skyway Builder , which, it seems to me, is preceded.

+3
Nov 16 '09 at 23:02
source share

Check out Tynamo

+3
Jan 25 '10 at 7:20
source share

NetBeans can generate CRUD for an existing database in JSF.

What about OpenXava http://openxava.org ?

+3
Mar 31 '11 at 19:48
source share

Take a look at Minuteproject

And try demos .

Regarding technology

If you're only looking for ORM + DAO, try the BSLA-JPA2 track (BSLA stands for Basic Spring Layer Architecture). He promotes a mask template to facilitate the search.

If you want persistence based on active recording to look like JOOQ or Roo

If you want servlets to look at minuteproject 4 Openxava or 4 Primefaces

If you want portlets to look at the Liferay Service builder , minuteproject will generate the .xml service from your database.

As for your model

If you want your code (java) to follow the java convention, and not for use in DB, use minuteproject. It has enrichment facilities that allow:

  • Package Objects (table / view)
  • Apply name / field conventions
  • Apply stereotypes / limitations / checks
  • restore relations (one2many, many2one, many2many) if there are no foreign keys ex here
  • And many more

This enrichment can be applied individually in a field / entity / package or globally through conventions ( This way you set up your own conventions ).

+3
Aug 29 '13 at 18:11
source share
+2
Jan 08 '10 at 10:05
source share

See Jspresso - http://www.jspresso.org/
It has several interfaces (Flex, pure HTML / Javascript, Swing, etc.), but it does not give you much freedom with regard to the review. It's worth checking out though.

+2
May 13 '11 at 7:27
source share

Do not forget Play . Extremely easy to use. When you have experience with rubies on rails, it will be easy for you to adapt to Java.

+2
Aug 26 '11 at 13:17
source share
+1
Jan 05 '09 at 21:38
source share

reinCRUD is a vaadin add that works using annotated sleep objects. You can create a CRUD application in minutes, and you can reuse components like lists, forms, and search forms.

+1
Jan 21 2018-11-11T00:
source share

If you have a sample project containing the required CRUD architecture (or any other), then Simple Scaffolding can be useful.

This is one class that scans your existing code base and creates templates that can then be applied to other objects. For example, MongoUserDao can be turned into a template, which then generates, say, MongoCustomerDao . It works with any code and test devices.

Very simple, but it does its job, and it is FOSS under the MIT license.

The GitHub repo is here: https://github.com/gary-rowe/SimpleScaffolding

0
May 20 '13 at 14:35
source share



All Articles