Trails is a domain driven development framework in the spirit of Ruby on Rails or Naked Objects. It can easily generate web pages for CRUD applications.
You can use HiberObjects to design the domain classes for Trails.
Please follow the instructions on the Trails site to create a new project. You will need Maven2.
When the project is created and imported into Eclipse, you can add HiberObjects capabilities to it:
In the Persistence page, set the following preferences:
Now, just model classes in HiberObjects as usual.
Save the diagram and test the Trails application by running
mvn jetty:run from the command line
and opening http://localhost:8080/
in a browser.
toString() method of the domain classes is used to render text
in lists. The
toString() that is generated by HiberObjects is meant
for debugging, not for the user interface.
You should implement
toString() in the domain classes manually.
@generated tag and return a nice text for the user interface.
Trails will quickly get a web application up and running with some default pages. The pages can be highly customized.