 47 | We start by creating a new NetBeans Project: Open the [New Project] dialog box, e.g. by using File > New Project... Select Java > Java Application and click Next. Choose a Project Name (e.g. Tutorial). The name of the Main class should be tutorial.Main. Verify that exactly this case sensitive fully |
 47 | To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New > Class. Enter tutorial as the package ... the new class. Copy and paste the following code into the newly created Point class:
package tutorial |
 47 | to replace the content of the Main class with the following content:
package tutorial;
import javax ... Tour chapter of the ObjectDB Manual. The next step (and the last in this tutorial) is running the project. |
 47 | guest has registered (using a JSP form that will be added in the next tutorial step) - a new Guest ... (which is presented in the next tutorial step) that generates the HTML output. The JSP uses the GuestDao |
 47 | : If a new guest has registered (using a JSP form that will be added in the next tutorial step) - a new ... (which is presented in the next tutorial step) that generates the HTML output. The JSP uses |
 47 | that is shown in the next tutorial step) - a new Guest entity object is constructed and stored in ... the next tutorial step). The JSP uses the "guest" attribute to generate the page output. Finally |
 47 | ) is constructed. If a new guest has registered (using a JSP form that is shown in the next tutorial step ... is forwarded to the JSP page (which is presented in the next tutorial step). The JSP uses the "guest |
 47 | : If a new guest has registered (using a JSP form that will be added in the next tutorial step) - a new ... is forwarded to the JSP page (which is presented in the next tutorial step). The JSP uses the "guest |
 47 | that will be added in the next tutorial step) - a new Guest entity object is constructed and stored in the database ... " attribute. Then the processing is forwarded to the JSP page (which is presented in the next tutorial |
 47 | >
JPA Guest Book Web Application <B>Tutorial</b>
tutorial) is running the web application. |