Search

4.5. Generating an application from an existing database

download PDF
Manually create tables in your database. (To switch to a different database, create a new project, and select the correct database.) Then, select File New Seam Generate Entities:
With JBoss Developer Studio, you can either reverse-engineer entities, components and views from a database schema, or reverse-engineer components and views from existing JPA entities. This tutorial concerns reverse-engineering from the database.
Restart the deployment:
Then 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 reverse-engineering.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.