3.5. Generating an application from an existing database
Manually create tables in your database. (To switch to a different database, run
seam setup
again.) Now type:seam generate-entities
Restart the deployment, and go to
http://localhost:8080/helloworld
. You can browse the database, edit existing objects, and create new objects. The code generated here is very simple. Seam was designed so that data access code is easy to write by hand, even without the assistance of seam-gen.