Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7164957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:09:40+00:00 2026-05-28T14:09:40+00:00

I work with jQuery+Spring+Hibernate stack a lot. Usually I find myself developing complex interfaces

  • 0

I work with jQuery+Spring+Hibernate stack a lot. Usually I find myself developing complex interfaces and integrating them all the way down to the complete stack, but sometimes I only have to make simple interfaces that allow CRUD operations on a simple database table. Developing these CRUD interfaces table-wise usually becomes a repetitive mechanical job which could be easily generated by a script as well. Ideally I would like to give table name to the script and it should generate every necessary class from Hibernate entity to the front-end controller (including JSPs).

So here are my questions:

  1. Is it a good idea to write script in this case? Would it involve too much complexity (apparently I don’t see much of it but may be I am missing some point)?
  2. What language should be used to write such scripts? (Java seems too heavy for this, I guess a dynamic language should suite better)

P.S. I know Spring Roo does reverse engineering, but I found couple of bottlenecks there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:09:40+00:00Added an answer on May 28, 2026 at 2:09 pm

    Lisp-based languages are very popular choices for this kind of code generation because they are dynamic,homoiconic languages that follow the principle that “code is data”.

    As a result generating the code according to a specific template to complete a task is generally not difficult – you just write a macro that expands to whatever code you need. A macro is just a regular function with the exception that it runs at compile-time (to generate the required code) rather than at runtime so you don’t even have to learn a different macro language.

    For a Java-based stack I’d strongly suggest taking a look at Clojure, which is a great langauge for code generation and “glue code” on the JVM.

    Here’s an example of the kind of data DSL that you can create with Clojure : Korma

    (defdb prod (postgres {:db "korma"
                           :username "db"
                           :password "dbpass"}))
    
    (defentity address)
    (defentity user
      (has-many address))
    
    (select user
      (with address)
      (fields :firstName :lastName :address.state)
      (where {:email "korma@sqlkorma.com"}))
    

    As you can see, a fairly simple DSL can be used to script pretty complex database interactions. All the necessary boilerplate code gets generated for you behind the scenes: you only need to focus on the business logic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using the following web development stack for a few years: java/spring/hibernate/mysql/jetty/wicket/jquery For
I have an MVC app that does a lot of work with jQuery ajax
I need to change an element's ID using jQuery. Apparently these don't work: jQuery(this).prev(li).attr(id)=newid
Anyone have any luck getting JScrollPane to work with JQuery? I'm following the instructions
How well does the jQuery library work on a PSP?
this code in my plugin used to work just fine: jQuery('#embedded_obj', context).get(0).getVersion(); and the
The jQuery ajax script below doesn't work on my site if url is without
I work on a Webproject using jQuery and CakePHP. I use jeditable as an
jQuery's draggable functionality doesn't seem to work on tables (in FF3 or Safari). It's
I am trying to work out a complicated jQuery selection. I have an array,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.