ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
56

How to define Default Entity Listeners without persistence.xml and orm.xml

I am using JPA programaticaly..ie without xml file, and i would like to define Default Entity ... require XML metadata. You cannot define default listeners using annotations (at least in JPA 2.0 ... to do specifics actions when my objects are persisted, without using XML, and without defining listeners
17

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 clicking and selecting Edit or by double click and then moving to the XML tab in the editor window
17

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 editor (by ... tab in the editor window). Use copy and paste to replace the default content of the web.xml file
13

JPA Persistence Unit

is optional when using ObjectDB, but required by JPA. persistence.xml Persistence units are defined in a persistence.xml file, which has to be located in the META-INF directory in the classpath. One persistence.xml file can include definitions for one or more persistence units. The portable way
9

Step 1: Create a Maven Web Project

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 ... .apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation
8

Step 1: Create a Maven Web Project

. The configuration of the new created project is contained in a pom.xml file that was created ... and to automatically download the required JAR files from Maven repositories - open the pom.xml file ... ://maven.apache.org/POM/4.0.0"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
4

JPA Web App Tutorial - Maven Project

The current directory should be guestbook-web (containing the pom.xml file) and port 8080 has to be available
4

Getting Started with JPA - Maven Project

should be points-console (containing the pom.xml file). No need to download and install ObjectDB - Maven
4

Spring MVC JPA Tutorial - Maven Project

should be guestbook-spring (containing the pom.xml file), and port 8080 has to be available
1

Step 2: Entity Class and Persistence Unit

the [Provider and Database] step just click Finish to generate a default persistence.xml file ... + ")"; } } A default JPA persistence unit (with default settings) was generated in a persistence.xml file that was added to the project (under Configuration Files). Open the persistence.xml file in

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support