We have created the required configuration files for Hibernate. Next, we will create the JSPs to persist, load, update, and delete POJO domain objects, which are also referred to as create, read, update, delete (CRUD). Perform the following steps to accomplish this:
webapp
folder and specify File name as schemaExport.jsp
. Click on Next, as shown in the following screenshot:schemaExport.jsp
file gets added to the webapp
folder.add.jsp
(to add table data), find.jsp
(to find table data), update.jsp
(to update a table row), and delete.jsp
(to delete a table row).The directory structure of the jboss-hibernate
project is shown in the following screenshot. The JSP files might indicate an error, which will get fixed as the application is developed and the Maven dependencies are added.