ObjectDB Database Search
1-50 of 200 resultsDatabase Management Settings
and for embedded mode. The default configuration file contains the following element: The element The element specifies the database file and page size settings: The initial attribute specifies the initial size for each new database file . The resize attribute specifies the size by which to extend the database
|
|
Database Doctor
file : Checks a specified ObjectDB database file to verify its integrity. If the file is corrupted ... database file : Creates a new database file and copies all recoverable data from the corrupted file to the new file . Corrupted database files Database files can be damaged or corrupted
|
|
Database Transaction Replayer
ObjectDB can record its internal engine operations in special binary recording files (journal files ). Recording is disabled by default and can be enabled in the configuration . The ObjectDB Replayer ... When recording is enabled , ObjectDB maintains a recording directory for each database file . The name
|
|
Apache License, Version 2.0, January 2004
to software source code, documentation source, and configuration files . "Object" form shall mean any form ... to You under this License for that Work shall terminate as of the date such litigation is filed . 4. Redistribution ... ; and You must cause any modified files to carry prominent notices stating that You changed the files
|
|
JPA Class Enhancer
.jar file . You can run it from the command line as follows: $ java -cp objectdb.jar com.objectdb.Enhancer If objectdb.jar is not in the current directory, a path to the file must be specified ... to the objectdb.jar file and the JVM. A usage message is displayed if no arguments are specified on the command
|
|
JPA Connections and Transactions
the database. If the database does not already exist, a new database file is created. When the application ... the EntityManagerFactory closes the database file . Connection URL The createEntityManagerFactory method takes ... ), you must specify an absolute or relative path to a local database file (for example, "my.odb" ). The objectdb
|
|
Server Configuration
is also affected by other elements in the configuration file , such as the and elements. The default configuration file contains the following element: The element The element specifies how clients can connect ... server. Every database file in the data directory and its subdirectories can be accessed by the server
|
|
Is ObjectDB scalable? What are its limitations?
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 entities per database file . Unlimited database connections (limited by operating system resources).
|
|
Obtaining a JPA Database Connection
, you can either define a standard persistence unit or provide the file path of the ObjectDB database directly ... . However, with ObjectDB, any valid database file path (absolute or relative) is also accepted. ObjectDB ... directory, which by default is the directory where ObjectDB is installed. If a database file does not
|
|
Schema Update
refactoring. You specify only these schema changes in the configuration file . As explained in ... files before renaming or moving persistable classes. You must also verify that after making ... configuration file contains an empty element. If this element is not empty, ObjectDB tries to apply
|
|
JPA Named Queries
class Country { ... } Note: You can also define named queries in JPA XML mapping files instead of using the @NamedQuery annotation. ObjectDB supports JPA XML mapping files , including the definition of named queries. However, because mapping files are mainly useful for Object-Relational Mapping (ORM
|
|
Privacy Policy
files that are placed on Your computer, mobile device or any other device by a website, containing ... . The technologies We use may include: Cookies or Browser Cookies: A cookie is a small file ... electronic files known as web beacons (also referred to as clear gifs, pixel tags, and single-pixel
|
|
How to install ObjectDB?
ObjectDB is distributed as a zip file . Just download and extract the ObjectDB distribution zip file . No need to run any install or setup program. You can uninstall ObjectDB by deleting the ObjectDB directory. ObjectDB does not modify the registry or any other system file .
|
|
JPA Lifecycle Events
only in a mapping XML file , such as orm.xml ; there is no equivalent annotation: This mapping file
|
|
Storing JPA Entities
XML element in the XML mapping file : The mapping file must be in the default location, META-INF/orm
|
|
ObjectDB License Agreement [ver. 2.0.4]
and objects in a database file . The full edition of the Software (without the restrictions ... an ObjectDB OEM license and it has not expired. Only the ObjectDB runtime jar file is distributed
|
|
Index Definition
files . When an entity is stored in the database, every indexed field must contain either null or a value ... is an ordered map data structure that ObjectDB maintains in the file system, not in memory. The B
|
|
[ODB1] Chapter 8 - ObjectDB Server
mode are discussed in Section 1.2 . Because the JDO API and the format of the database file ... application, packaged in the odbse.jar file . The jar file contains the entire ObjectDB ... the odbse.jar file on both the client and the server computers. This section explains how to run
|
|
[ODB1] Chapter 9 - ObjectDB Explorer
is packaged in the main ObjectDB development jar file (odbfe.jar / odbee.jar / odbse.jar), located in ObjectDB's lib directory. Because this file is an executable jar, on most systems, you can double click ... procedure is recommended, copy the file to the bin subdirectory, edit the copy and use it to start
|
|
Step 6: Set the Spring XML
of the Spring dispatcher servlet to the web.xml configuration file and to configure that servlet using another xml configuration file . Open the web.xml file (under src/main/webapp/WEB-INF) in a text ... of the web.xml file with the following new content: spring org.springframework.web.servlet
|
|
Step 6: Set the Spring XML
of the Spring dispatcher servlet to the web.xml configuration file and to configure that servlet using another xml configuration file . Open the web.xml file (under Web Pages WEB-INF) in a text editor (by right ... ). Use copy and paste to replace the default content of the web.xml file with the following new content
|
|
Step 2: Entity Class and Persistence Unit
and paste to replace the new source file content with the following code: package guest; import java.io ... a META-INF/persistence.xml file : Open the [New Folder] dialog box, e.g. by right clicking the project ... , select New File , enter persistence.xml as file name and click Finish . Verify that a new
|
|
Step 2: Entity Class and Persistence Unit
the [Provider and Database] step just click Finish to generate a default persistence.xml file ... to replace the new source file content with the following code: package guest; import java.io ... JPA persistence unit (with default settings) was generated in a persistence.xml file that was added
|
|
Step 2: Entity Class and Persistence Unit
and paste to replace the new source file content with the following code: package guest; import ... by setting a META-INF/persistence.xml file : Right click the src/main/resources node (in ... Explorer] window, select New File , enter persistence.xml as file name and click 
|
|
Step 1: Create a Maven Web Project
. by using File New Project... Select Maven Maven Web Application and click Next . Choose a Project ... the project. The configuration of the new created project is contained in a pom.xml file that was created under Project Files in the [Project] window: To add dependency on the Spring MVC Framework and ObjectDB
|
|
Step 2: Entity Class and Persistence Unit
file with a default persistence unit (that will be configured later). If the Finish button is disabled ... to replace the new source file content with the following code: package guest; import java.io ... JPA persistence unit (with default settings) was generated in a persistence.xml file that was added
|
|
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 ... New Other... Web JSP File and clicking Next . Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish to create the new JSP file . Now
|
|
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 ... ), selecting New Other... Web JSP File and clicking Next . The parent folder should be WEB-INF (to prevent direct access to the JSP bypassing Spring). Enter guest as the jsp file name - use
|
|
[ODB1] Chapter 2 - A Quick Tour
of a single source file , HelloWorld.java , containing a single class: 1 // A simple program that manages ... (line 5). Lines 11-14 A PersistenceManager instance representing a local database file , hello.odb ... file does not exist in that path, a new database file is created automatically. To enable updating
|
|
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
|
|
Step 4: Run the Application
) and selecting Run File . The expected output in the [Output] window, is: Total Points: 1000 Average X: 499 ... , 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 an additional
|
|
Spring MVC JPA Tutorial - IntelliJ Project
zip file : Spring MVC JPA - Maven Project (8KB) Open the project in IntelliJ IDEA: Select File ... the Server: Select File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat ... +F10 ). If the browser fails to open check the settings at File Settings Web Browsers .
|
|
Step 1: Create a Maven Web Project
] dialog box, e.g. by using File New Project... Select Maven Maven Project and click  ... of the new created project is contained in a pom.xml file that was created in the project main ... files from Maven repositories - open the pom.xml file and in the pom.xml tab use 
|
|
Step 7: Run the Spring Web App
the content of the index.jsp file (which serves as the default front page) with the following ... ; persistence.xml file - instead of RESOURCE_LOCAL you will have to specify JTA . To enable on the fly ... without specifying a Java agent. Since we are using ObjectDB in embedded mode - the database file
|
|
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: JPA
|
|
Step 4: Run the Application
You can now run the application by right clicking the Main.java file (in the [ Package Explorer ... ) When you run the application for the first time, a new ObjectDB database file is generated in the db sub ... the existing database file to store an additional 1000 objects. You can view the content of the database file
|
|
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: JPA
|
|
[ODB1] Chapter 3 - Persistent Classes
has to: be declared in a JDO metadata file in XML format. include a no-arg constructor. implement ... class for this purpose (images can also be stored as external files , storing only the file names or ... the byte code of compiled classes. Classes to be enhanced must be located in class files and not in
|
|
Step 1: Create a Java EE 6 Web Project
box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... dynamic web project. To add ObjectDB/JPA support to the project, drag the objectdb.jar file from the file system and drop it in the WebContent/WEB-INF/lib node in the Eclipse Project Explorer
|
|
Step 6: Run the Java EE 6 Application
] window), selecting Run File , and then clicking OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created ... server and open the database file in ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .
|
|
Step 6: Run the Web Application
), selecting Run File , and then clicking OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat server and open the database file in ObjectDB Explorer : This is the end
|
|
Report Generation with BIRT and JPA
simple as possible - we will use the basic points.odb ObjectDB database file from the Getting Started tutorial. The database file contains 1,000 Point entities, which represent points on the line y
|
|
Step 2: Define a JPA Entity Class
and paste to fill the new source file with the following content: package tutorial; import java.io ... indicates that a persistence unit definition in an XML file is missing. This is discussed in the ObjectDB
|
|
JPA Web App Tutorial - NetBeans Project
To open and run the JPA Web Application tutorial project in NetBeans: Download and extract the project zip file : JPA Web App - Maven Project (6KB) Open the Maven project in NetBeans: Select File Open Project... . Select the guestbook-web directory and click Open
|
|
Step 1: Create a Java Project
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 ... ] window and select Add Jar/Folder... Select the objectdb.jar file from the bin subdirectory
|
|
Java EE 6 JPA Tutorial - Eclipse Project
To open and run the Java EE 6 Web Application tutorial project in Eclipse: Download and extract the project zip file : Java EE JPA Web App - Maven Project (7KB) Open the Maven project in Eclipse: Select File Import... Maven Existing Maven Projects and click Next . Select
|
|
Step 6: Run the Java EE 6 Application
- the database file is created under the GlassFish directory (e.g. at domains\domain1\eclipseApps\Guestbook\WEB-INF ). You can stop the GlassFish server and open the database file in ObjectDB Explorer
|
|
Step 6: Run the Web Application
- the database file is created under the Tomcat directory. You can stop the Tomcat server and open the database file in ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .
|
|
Spring MVC JPA Tutorial - Eclipse Project
To open and run the Spring MVC JPA tutorial project in Eclipse: Download and extract the project zip file : Spring MVC JPA - Maven Project (8KB) Open the Maven project in Eclipse: Select File Import... Maven Existing Maven Projects and click Next . Select the guestbook
|
|
Java EE 6 JPA Tutorial - NetBeans Project
To open and run the Java EE 6 Web Application tutorial project in NetBeans: Download and extract the project zip file : Java EE JPA Web App - Maven Project (7KB) Open the Maven project in NetBeans: Select File Open Project... . Select the guestbook-jee6 directory
|