Re: Seeking a simple java code generator for database CRUD web applications
On May 19, 6:03 pm, Daniel Pitts
Frameworks like Spring and Hibernate are how you create "Simple."
For my meaning of the word, Spring and Hibernate are the opposite of
"Simple". With these frameworks, creating a new application may be
simple for an experienced developer, but for a developer just starting
out with Java and learning the language, I do not want to have to
burden them with learning the intricacies of these packages in
A simple controller servlet is exactly that: simple. Likewise DAOs
or DTOs. Likewise display JSPs. Especially when the problem domain
is simple, e.g., maintenance of a single table.
JPA will create tables for you automagically if you ask it to.
Not using a framework
is bad for novice Java programmers.
I have to disagree with you there. Using a framework allows you to
learn the *framework*. As I stated above, it may make it easier to
build an application once a developer is well-versed in the language,
but until that point, there is a much steeper learning curve if
Hibernate or Spring are thrown into the mix as opposed to teaching a
developer the basics of MVC OOP and later building onto it.
Presumably these developers know the basics of core Java already, otherwise
you're already overburdening them by teaching servlets and web programming at
the same time.
My mandate, unfortunately, is not to put together the best development
platform, but rather to put together a platform which can allow novice
programmers (moving from old technology) to (1) build database
maintenance applications very quickly, (2) which can be easily and
quickly understood and modified, and (3) to be able to do this in the
shortest timeframe possible. I remain convinced that the frameworks
I've described, while being better in the long term on well defined
projects, will not allow me the quick turnaround that is desired.
Just have them write with straight JDBC using a "Model 2" MVC architecture.
You could write a basic set of root classes for a DAO layer yourself and use
that. I wrote several such web applications before I started using JSF or Struts.
Writing mission-critical applications with novice programmers and dumbing down
the development (which will sharply increase maintenance costs) does not
strike one as the most profitable model for a business. Business models that
rely on using incompetent programmers may be flawed. You guys may go broke
Use a real, solid development approach and train up your guys. Don't mix the
purposes of training and production, and don't produce production code in
school. Produce production code from production-quality developers. Be smart.