Hibernate CRUD Ã la Ruby on Rails' Scaffolding
Do you know of any tool that would do like Ruby on Rails' Scaffolding (create simple CRUD pages for any particular class to allow quickly populating a database with dummy data), only which used Java classes with Hibernate for database access, and JSP/JSF for the pages?
It is a drag when you are programming one part of an application, but need data that can only be added with another part that is not ready yet, or very cumbersomely by directly inserting it into the DB.
Asked by: John400 | Posted: 28-01-2022
Answer 1
Grails is a very nice Rails-like framework built on top of Spring MVC. For persistence, they use GORM, which is basically an ActiveRecord-like framework built on top of Hibernate. Pretty slick.
If you already have Hibernate entities, they can actually be used immediately in Grails with no additional work.
Answered by: Kelvin309 | Posted: 01-03-2022Answer 2
You can try Telosys Tools, an Eclipse plugin for code generation (scaffolding) working from an existing database with customizable Velocity templates. It's very simple and easy to use.
The tutorial for code generation with Spring MVC and Spring Data is here : https://sites.google.com/site/telosystutorial/
See also : http://tools.telosys.org/
Eclipse Marketplace : http://marketplace.eclipse.org/content/telosys-tools
Answered by: Kristian538 | Posted: 01-03-2022Answer 3
I'm a little late on this one but it popped up in the "Related" links →
JBoss Seam and it's Seam Gen tasks are exactly what you are looking for (Hibernate + JSF). You can generate an entire web app from a Hibernate fronted database in seconds.
Answered by: Lucas744 | Posted: 01-03-2022Answer 4
you can use grails. Grails tries to be Groovy on Rails -- uses Rails behind the scene for scaffolding, etc. Since you can pretty much write full scale java code in a groovy class, you can have the CAKE and EAT IT too.
Answered by: Roman531 | Posted: 01-03-2022Answer 5
Grails is somewhat different from Rails, even though it was based on Rails and has a similar feel. Grails uses spring to help wire your services together. The environment is not only dynamic (with Groovy) but also allows you to use Java (static environment) as well. It is really cool, especially if you're coming from a java environment. The Grails folks took the Rails idea and expanded it using the Domain Driven Model. Rails is still data model centric where you have to deal a lot with the database to create your objects (which is called a model), where as Grails allows you to design applications using the true domain object model where you deal with objects from the domain class' perspective instead of the database.
Answered by: Emily589 | Posted: 01-03-2022Answer 6
There is a good tutorial here on how to do this in Netbeans. I've used this wizard before with good results. Out of the box you can select which persistance framework to use and the JSF pages it produces are quite nice and clean.
Answered by: Lucas994 | Posted: 01-03-2022Answer 7
Spring + AspectJ + Hibernate + CLI = Spring Roo RAD framework.
Give it a try.
Answered by: Blake644 | Posted: 01-03-2022Similar questions
Is there a CRUD generator utility in Java(any framework) like Scaffolding in Rails?
Closed. This question does not meet Stack Overflow guid...
java - Grails Scaffolding Select
I have performance issues when i'm using the tag. In some tables in the database i have thousands of records and when I try to edit some field in Grails the tag generates a drop-down list of all records in a table and that causes real performance problems and even a EndOfMemorryError sometimes. The generated html is huge, i've tried to implement an autocomplete method for listing but the result wasn't satisfying because ...
java - How to implement Scaffolding in Spring 3.0
"I am using spring maven project and want to implement Scaffolding in it so that I can generate DAO's, services and spring form dynamically depending upon model. How it can be achieved?"
java - Scaffolding in Gradle
Whenever I start a new Java+Gradle project, I create the following directory structure manually:
project-name
|
|--- build.gradle
|
|--- .gitignore
|
|--- src
|--- main
| |---java
|
|--- test
|---java
Since this is a fairly standard structure, I imagine there must be a plugin/command/task for Gradle that would do this scaffold...
java - Responding with XML when using Grails scaffolding
I have a POJO for a legacy database and I created this scaffold for it:
package example
import com.example.entities.ModelView
class ModelViewController {
static scaffold = ModelView
}
When I go to my browser at http://example.com:8080/example/modelView/list I see a wonderful HTML page where I get full CRUD. ...
angularjs - How to combine Yeoman scaffolding with existing Java directory structure
In my existing web project the directory structure for the served html content while development with jetty is "myProject/src/main/webapp/"
Now, I want to integrate an angularjs project here.
I've played a little bit with Yeoman.
If I'm scaffolding with yeoman, I'm wondering how I can integrate it into our existing dev and deployment structure.
I suppose to use the main folder "myProject" to run yeoman scaf...
java - Grails dynamic scaffolding error
I am new to Grails, I installed Grails 2.4 on Ubuntu 14.04
I have this Grails Domain:
class EndUser {
String username
String password
String fullName
String toString() {
"$fullName"
}
static hasMany = [projects: Project, tasks: Task]
static constraints = {
fullName()
username()
password()
}
}
and it's controller:
java - Unable to save field which is @ManyToOne after scaffolding using spring crud application
I am fairly new in spring/jsf combination and as a beginner I have faced a lot of issues. First of all the not so big documentation, until now I have managed to surpass some of the issues by trial and error methods but now I am getting really annoyed. I have created a new web project with MyEclipse and used the Scaffolding Spring CRUD feature which generates 4 layers, the domain object layer, dao ,...
java - Scaffolding in JetBrains IntelliJ IDEA like Visual Studio
I am newbie in IntelliJ IDE
in Visual Studio we can create scaffolding extensions something like Kendo UI Scaffolder.
Please look at the following images
java - Issue with Scaffolding Spring Security
i am using myEclipse to generate a CRUD spring web app , i want also add Spring Security using Scaffolding Spring Security from Spring Tools.
The web app is well generated and working fine , but i have an issue for the security part : the welcome page generated after succeful login doesn't contain the logout button.
<?xml version="1.0" encoding="UTF-8"?>
<beans:bea...
Still can't find your answer? Check out these amazing Java communities for help...
Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)