Fast Object Database for Java - with JPA/JDO support

Internal Website Search

111-120 of 200 resultsRefresh
4

javax.persistence.OptimisticLockException

, if one is active, will be marked for rollback. Since: JPA 1.0 See Also: EntityManager.find(Class, Object, LockModeType) EntityManager.find(Class, Object, LockModeType, java.util.Map) EntityManager.lock(Object, LockModeType) EntityManager.lock(Object, LockModeType, java.util.Map
3

createEntityManager(map)

Method javax.persistence.EntityManagerFactory EntityManager createEntityManager( Map map ) Create a new application-managed EntityManager with the specified Map of properties. This method returns a new EntityManager instance each time it is invoked. The isOpen method will return true
3

createEntityManager()

Method javax.persistence.EntityManagerFactory EntityManager createEntityManager() Create a new application-managed EntityManager. This method returns a new EntityManager instance each time it is invoked. The isOpen method will return true on the returned instance. Returns: entity manager instance
3

javax.persistence.NamedQuery

EntityManager em; ... customers = em.createNamedQuery("findAllCustomersWithName ... with the EntityManager methods that create query objects. (Required) The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0 String query (Required) The query
3

Updating Entities

"); public static EntityManager employeeDB = emf.createEntityManager(); public static EntityManager ... EntityManagers were not communicating their changes to each other. Which is where my question comes in ... . That said - those updates take place within their respective EntityManager i.e. EmployeeOverview deals
3

Merge with Parent/Child entities not possible

javax.persistence.Entity; import javax.persistence.EntityManager; import javax.persistence ... id) {    this.id = id;   } } private EntityManager createEntityManager(String dbFileName ... ("objectdb:" + dbFileName);   EntityManager entityManager = emf.createEntityManager
3

Internal exception when updating date filed (TemporalType.DATE)

entityManagerFactory;         private EntityManager entityManager;         public DataManager(String ... (connectionString);             entityManager = entityManagerFactory.createEntityManager ... ) {             System.out.println("Set new birthday:" + newBirthday.toString());             try {                 entityManager
2

Performance in large transactions

.) Pseudocode for the fast and the slow solution FAST: for (i = 0; i <100; i ++) { EntityManager entityManager = getEntityManagerFactory().createEntityManager(); entityManager.setFlushMode(FlushModeType.AUTO); EntityTransaction transaction = entityManager.getTransaction
2

@OneToMany(fetch = FetchType.LAZY) list is always null

") private EntityManager entityManager; @EJB private Manager manager; private ... = entityManager.createQuery("SELECT p FROM Parent p"); parents = query.getResultList ... (unitName = "my-pu") private EntityManager entityManager; public void persist(Object o
2

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

_EntityManager = m_EntityMgrFactory.createEntityManager(); m_EntityManager.setFlushMode( FlushModeType.COMMIT ); if ( m_EntityManager.isOpen() ) { m_EntityManager.getTransaction().begin(); for ( Pa3DataKey dataKey : aDataKeys ) { m_EntityManager.persist( dataKey

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