ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
12

Obtaining a JPA Database Connection

, it is very easy to begin a transaction: em.getTransaction().begin
12

Database Connection using JPA

that is available via the getTransaction method: try { em.getTransaction().begin ... (); } A transaction is started by a call to begin and ended by a call to either commit or rollback
12

Updating JPA Entity Objects

.getTransaction().begin(); employee.setNickname("Joe the Plumber"); em.getTransaction().commit ... ); em.getTransaction().begin(); employee.projects[0] = new Project(); // not detected
1

Step 4: Add a Servlet Class

"); if (name != null) { em.getTransaction().begin(); em.persist(new
1

Step 3: Define an EJB Session Bean

to wrap every operation that modifies the database (such as persist) by transaction begin and commit
1

Step 3: Define a Spring DAO Component

every operation that modifies the database (such as persist) by transaction begin and commit. The next step is adding a Controller Class.
1

Step 3: Add a Main Class

.createEntityManager(); // Store 1000 Point objects in the database: em.getTransaction().begin
1

Step 3: Add a Main Class

(); // Store 1000 Point objects in the database: em.getTransaction().begin
1

Step 3: Define a Spring DAO Component

that modifies the database (such as persist) by transaction begin and commit. The next step is adding a Controller Class.
0

[ODB1] Chapter 9 - ObjectDB Explorer

. After "File | Save" and "File | Discard Changes", the Explorer automatically begins a new

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