ObjectDB ObjectDB

Internal Website Search

91-100 of 200 resultsRefresh
6

Locking in JPA

object. The initial version of a new entity object (when it is stored in the database for the first time ... > properties = new HashMap();   properties.put("javax.persistence.lock.timeout", 2000 ... - using the createEntityManager method:   Map<String,Object> properties = new HashMap
5

JPA Persistable Types

, date2 and date3 above may be initialized as new Date(), i.e. with both date and time. Their time ... an existing database. New enum fields can be added safely only at the end (with new higher ordinal numbers
5

FROM clause (JPQL / Criteria API)

, INDEX, INNER, IS, JOIN, KEY, LEADING, LEFT, LENGTH, LIKE,LOCATE, LOWER, MAX, MEMBER, MIN, MOD, NEW ... . Every time the from method is invoked - a new variable is added to the query. Criteria Query Joins ... of the join method. Every invocation of join adds a new JOIN variable to the query. Since From
1

Step 3: Add a Context Listener Class

closing the EntityManagerFactory. To register a ServletContextListener: Open the [New File] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New ... the new listener class. Now replace the content of the new source file with the following code
1

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] dialog box by right clicking the WebContent node (in the [Package Explorer] window), selecting New ... that case sensitive class name. Click Finish to create the new JSP file. Now replace the content of the new
1

Step 1: Create a Web Project

We start by creating a new NetBeans Web Application Project: Open the [New Project] dialog box, e.g. by using File > New Project... Select Java Web > Web Application and click Next. Choose a Project ... : You may have to add Tomcat 6 as a new server by clicking the Add... button. Follow the instructions and specify
1

Step 2: Define a JPA Entity Class

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 ... () { return String.format("(%d, %d)", this.x, this.y); } } The new class should represent Point
1

Step 6: Set the Spring XML

with the following new content: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns ... that file: Right click the WEB-INF node in the [Package Explorer] window, select New > Other... > XML > XML ... the content of the spring-servlet.xml file with the following new content: <?xml version="1.0" encoding
1

Step 6: Set the Spring XML

). Use copy and paste to replace the default content of the web.xml file with the following new ... node in the [Projects] window, select New > Other... and then choose the XML category, XML Document ... of the spring-servlet.xml file with the following new content: <?xml version="1.0" encoding="windows
0

javax.jdo.PersistenceManager

of instances to evict Since: JDO 2.1 void flush() Flushes all dirty, new, and deleted instances to the data store. Flushes all dirty, new, and deleted instances to the data store. It has no effect ... , create and populate a new FetchGroup from the existing definition in the PersistenceManager or

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