ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
8

Optimistic locking: prevent version increment on entity collection attribute

is the EntityManager     em.getTransaction().begin();        Document doc = new Document ... "); EntityManager em = emf.createEntityManager(); em.getTransaction().begin ... .createEntityManager(); em.getTransaction().begin(); Document doc = new Document(); // Note
8

Internal exception when updating date filed (TemporalType.DATE)

.getTransaction().begin();                 TypedQuery<Person> personQuery = entityManager ... ) {             try {                 entityManager.getTransaction().begin();                 for (int index ... ) { entityManager.getTransaction().begin(); for (int index = 0; index < 10000; index
8

Date field Index is corrupted due to time change

.createEntityManager();         em.getTransaction().begin();                 // Add records ... .createQuery("SELECT COUNT(r) FROM DateTime AS r");         em.getTransaction().begin();         Long r ... ");             em.getTransaction().begin();             q.executeUpdate();             em.getTransaction
8

Schema Update: class hierarchy change

.createEntityManager();   // Persist an entity   em.getTransaction().begin();   MyEntity entity = new ... .persist(entity);   em.getTransaction().commit();     em.getTransaction().begin();   MyEntity ... ();   //don't create a new object!   //  // Persist an entity //  em.getTransaction().begin
8

Updating Entities

().begin();   this.rate = rate;   Main.paygradeDB.getTransaction().commit();   return true ... -> System.out.println(p.getRate())); Main.paygradeDB.getTransaction().begin(); modifyTo.executeUpdate ... .getTransaction().begin(); for(Employee e : Query.employeesByPaygrade(p)) //Returns only Employees
8

Persist error @ManyToMany how to define correct entities relationships

checkActive(){ if(!em.getTransaction().isActive()) em.getTransaction().begin ... (){ if(!em.getTransaction().isActive()) em.getTransaction().begin ... ().isActive()) em.getTransaction().begin(); } } } lo Hoel If you use merge
8

Remove a modified entity cause an optimistic lock exception

();         em.getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction ... .getTransaction().begin();         MyEntity e = em.find(MyEntity.class, 1);         e.increaseValue ... "); EntityManager em = emf.createEntityManager(); em.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin
8

Items in list are doubled, when the entity class is not enhanced

.createQuery("select c from Customer c").getResultList(); em.getTransaction().begin ... = em.createQuery("select i from Item i").getResultList(); em.getTransaction().begin ... (); em.getTransaction().begin(); Customer c = new Customer(); em
8

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

) { try { transaction.begin(); entityManager.persist(o ... { transaction.begin(); entityManager.persist(child); if (child ... { transaction.begin(); entityManager.persist(o); transaction.commit
1

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

parentEntity = new ParentEntity();   entityManager.getTransaction().begin();   entityManager.persist(parentEntity);   entityManager.getTransaction().commit();   entityManager.getTransaction().begin ... ");         EntityManager em = emf.createEntityManager();         em.getTransaction().begin

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