In this part III of the tutorial, we’ll build the entity classes from the database we created in Part I and configure the Seam project we created in Part II so as to make it fully compatible with Apache Tomcat.
Creating The Model Layer
We’ll use Hibernate‘s reverse engineering tool (hbm2java) embedded in Seam-gen to create the entity classes from the database we created in part 1.
Figure 3.1 - Generating entities from database in JBoss Seam
Right-click the project blog in project explorer and select New > Seam Generate Entities.
Tired of simplehello world tutorials or tutorials taking you only as far as user login and registration examples? Here’s an intermediate-level tutorial in which I will demonstrate how to make a blog CMS application using JBoss Seam incorporatingJSF (w/Facelets), Hibernate JPA and how to deploy it to Apache Tomcat web server. With this tutorial, I also aim to provide complete and correct instructions for preparing a Seam 2.2 project to be deployed on Tomcat without errors.
The blog we’ll make in this tutorial is simple, but the tutorial itself is not.
Here’s a list of technologies and frameworks with their versions which we will use here: