Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java Code Generator for CRUD classes(how to generate Java code for CRUD database applications)
Java Code Generator for CRUD classes [message #1427878] Sat, 20 September 2014 23:54 Go to next message
Cyrix Who is currently offline Cyrix WhoFriend
Messages: 1
Registered: September 2014
Junior Member
Hello everyone,

I am working on a project that requires CRUD operations on 500+ database tables with Java. For each table, I created one class with different methods (create, read, update and delete); and another class to return JSON format data for each methods ; and lastly, there is a HTML web page to display JSON data with JQuery.

This sounds easy because I can do coding for each table one by one. However there are a lot of repeated works. The class names, methods, parameters are all different but the logic are all the same, simple create/read/update/delete operations.

Is there a better way to handle this, such as a code generator?

By the way, I use eclipse as my development tool.

Thanks!
Cyrix.
Re: Java Code Generator for CRUD classes [message #1428265 is a reply to message #1427878] Sun, 21 September 2014 14:58 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09/20/2014 06:39 PM, Cyrix Who wrote:
> Hello everyone,
>
> I am working on a project that requires CRUD operations on 500+ database
> tables with Java. For each table, I created one class with different
> methods (create, read, update and delete); and another class to return
> JSON format data for each methods ; and lastly, there is a HTML web page
> to display JSON data with JQuery.
>
> This sounds easy because I can do coding for each table one by one.
> However there are a lot of repeated works. The class names, methods,
> parameters are all different but the logic are all the same, simple
> create/read/update/delete operations.
> Is there a better way to handle this, such as a code generator?
> By the way, I use eclipse as my development tool.
>
> Thanks!
> Cyrix.

This is a Java question and rather not for this forum. Better would be
javaranch.com or stackoverflow.com.

However, based on the little you've said, I would think you need to
investigate an ORM like Hibernate.
Previous Topic:Cannot "find" or run project downloaded from Github
Next Topic:Eclipse hangs when executed
Goto Forum:
  


Current Time: Fri Oct 18 01:48:19 GMT 2019

Powered by FUDForum. Page generated in 0.03150 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top