Fast Object Database for Java - with JPA/JDO support

About injection

1-10 of 48 resultsRefresh
54

Step 3: Define an EJB Session Bean

class GuestDao { // Injected database connection: @PersistenceContext private EntityManager ... of the EJB class and injects an instance of the EJB class into the servlet (as shown in the next step). Prepares an EntityManager automatically and injects it into the em field (because it is annotated
54

Step 3: Define a Spring DAO Component

.transaction.annotation.Transactional; @Component public class GuestDao { // Injected database ... the instantiation of the DAO component class and injects an instance of the DAO component class into the controller, as shown in the next step. Prepares an EntityManager automatically and injects it into the em
54

Step 3: Define an EJB Session Bean

; @Stateless public class GuestDao { // Injected database connection ... : Manages the instantiation of the EJB class and injects an instance of the EJB class into the servlet (as shown in the next step). Prepares an EntityManager automatically and injects it into the em field
54

Step 3: Define a Spring DAO Component

.annotation.Transactional; @Component public class GuestDao { // Injected database connection ... component class and injects an instance of the DAO component class into the controller, as shown in the next step. Prepares an EntityManager automatically and injects it into the em field
38

TemporalType injection with Calendar using JPA

TemporalType injection with Calendar using JPA
24

Step 4: Add a Servlet Class

; // Injected DAO EJB: @EJB GuestDao guestDao; @Override protected void doGet ... session bean, which is instantiated and injected by the application server into the guestDao field
24

Step 4: Add a Servlet Class

final long serialVersionUID = 1L; // Injected DAO EJB: @EJB GuestDao guestDao ... on the database are carried on by the GuestDao session bean, which is instantiated and injected by
17

ObjectDB Object Database Features

(can be injected to a @Version field). Optimistic locking (always active). Implicit pessimistic
17

Step 4: Add a Controller Class

is automatically constructed and injected by Spring into the guestDao field (because it is annotated
17

Step 6: Set the Spring XML

, controllers and transactions), to inject a JPA EntityManager, to manage transactions and to look for JSP

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