About file

101-110 of 200Refresh
Tutorial
11

Step 2: Entity Class and Persistence Unit

the [Provider and Database] step click Finish to generate a default persistence.xml file ... the new source file content with the following code: package guest; import java.io.Serializable ... + ")"; } } A default JPA persistence unit (with default settings) was generated in a persistence.xml file
Tutorial
10

Step 7: Run the Spring Web App

the content of the index.jsp file (which serves as the default front page) with the following redirection ... the persistence.xml file - instead of RESOURCE_LOCAL you will have to specify JTA. To enable on the fly automatic ... without specifying a Java agent. Since we are using ObjectDB in embedded mode - the database file is created
Tutorial
10

Step 4: Run the Application

) and selecting Run File. The expected output in the [Output] window, is: Total Points: 1000 Average X: 499 ... for the first time, a new ObjectDB database file is generated in the db subdirectory under the ObjectDB installation directory. Running the application again will use the existing database file to store
Tutorial
10

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File ... ... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish to create the new JSP file. Now replace the content of the new jsp file with the following content
Tutorial
10

Step 1: Create a Maven Web Project

box, e.g. by using File > New > Project... Select Maven > Maven Project and click Next. Verify ... to create the project. The configuration of the new created project is contained in a pom.xml file ... all the required JAR files from Maven repositories - open the pom.xml file and in the pom.xml tab use
FAQ
10

Is ObjectDB scalable? What are its limitation?

supports: Database file size up to 128 TB (= 131,072 GB = 134,217,728 MB). Up to 2,147,483,648 entity classes per database file. Up to 2,147,483,648 indexes per database file. Up to 9,223,372,036,854,775,808 entity objects per database file. Unlimited database connections (limited by operating system resources).
Tutorial
10

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File ... ... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish to create the new JSP file. Now replace the content of the new jsp file with the following content
Tutorial
10

Step 7: Run the Spring Web App

the content of the index.jsp file (which serves as the default front page) with the following redirection ... change in the persistence.xml file - instead of RESOURCE_LOCAL you will have to specify JTA. Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory
Tutorial
10

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File ... ) and selecting New > JSP... Enter guest as the jsp file name - use exactly that case sensitive class ... Finish to create the new JSP file. Now replace the content of the new jsp file with the following
Tutorial
10

Java EE 6 JPA Tutorial - IntelliJ Project [2011-02-05]

and extract the project zip file: Java EE 6 JPA Web App - Maven Project (6KB). Open the project in IntelliJ IDEA: Select File > Open Project.... Select the guestbook-jee6 directory and click OK. Define the Server: Select File > Settings > Application Servers. Add Tomcat 6 Server if not set already (Tomcat