Reputation: 417
I am looking for some framework in java which can directly create html forms from database tables for crud operations on DB?
Upvotes: 2
Views: 10030
Reputation: 7344
Spring Roo builds entities, pages and controllers based on Spring MVC,JPA. It can detect changes in the database. It is interesting that leaves no dependencies at runtime so, elements can be modified as regular Spring MVC elements, or you can add your own controllers, views, etc.
It has its limitations, of course, but it can be useful.
Upvotes: 6
Reputation:
I have created a java based tool called Enfacade, that will generate CRUD screens from your DB tables.
The screens are data grid based and they will allow multiple grids to give one-to-many functionality.
You can then deploy to any java web application server using the runtime engine.
Upvotes: 1
Reputation: 655
Telosys Tools (an Eclipse plugin) can generate a full Spring MVC web application from an existing database.
See the tutorials : https://sites.google.com/site/telosystutorial/
( if necessary the templates are customizable )
Upvotes: 4
Reputation: 54802
NetBeans can generate JSF pages based on your entities to do basic CRUD operations.
How-To: Generating a JavaServer Faces 2.x CRUD Application from a Database
Upvotes: 2
Reputation: 1294
I think this is a big missing type framework in java. Roo works quite well, but it generates many files for each entity and seems to hava problems when you want to edit/remove some of them (at least it happened when I was trying). I would like something like django admin, it should generate the page dynamically for each entity, probably with a view class describing the view. For customizing a view even further it should follow a convention like: views/domain/Entity.jsp -> replaces the whole view for the entity views/domain/Entity_fieldname.jsp -> used as template for the field
Same thing for controllers, in roo there are many class that do almost the same thing. Why not use a default controller, and if the user defines a controller related to a entity, he could override the methods.
Of course this is not detailed enough, but I think pure java can improve a lot in making simple CRUD screens easy. At least, this is the open source side. Inside business there are frameworks for CRUD, sometimes similara to this I describe. The hard part is making this framework decoupled from the other tools.
Upvotes: 2
Reputation: 245
try this: barahisolutions.com/code-generator.htm
Its a Swing based code generator to reverse engineer databases and generate HTML forms ,entities,daos.
Upvotes: 1
Reputation: 694
Maybe Spring Roo can help you:
http://www.springsource.org/spring-roo
http://static.springsource.org/spring-roo/reference/html/base-dbre.html
Upvotes: 2
Reputation: 3634
Would this work for you? http://incubator.apache.org/isis/index.html
Upvotes: 4