4.4. New Seam Entity

Entities cannot be hot-deployed, so we need to stop the server.

Create an Entity using the New Entity wizard File > New > Seam Entity.

You should select a necessary project, type a name for Entity class, select a Package using Browse button, type a name for Master Page and Page.

New Seam Entity Wizard

Figure 4.12. New Seam Entity Wizard


The Master Page and the Entity were created in WebContent folder.

Master Page in JBoss Tools HTML Editor.

Figure 4.13. Master Page in JBoss Tools HTML Editor.


The Entity page is:

Entity Page in JBoss Tools HTML Editor.

Figure 4.14. Entity Page in JBoss Tools HTML Editor.


Run the Entity page on server. This is what you get:

Customer Page

Figure 4.15. Customer Page