ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
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

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

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

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
1

stress test -> com.objectdb.o.InternalException: null

), then the load test begins. It seems to be related on what load I put on the server through jMeter ... em1 = emf.createEntityManager();         em1.getTransaction().begin();         em1.persist(new ... ();         em2.getTransaction().begin();         em2.persist(new TestEntity());         em2
1

New entity objects are duplicated on merge cascading

();         em.getTransaction().begin();         em.persist(new Book());         em.getTransaction().commit ... ();         em.getTransaction().begin();         book.chapters = Arrays.asList(new Chapter());         em.merge ... );         EntityManager em = emf.createEntityManager();         em.getTransaction().begin
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
1

Unexpected exception (Error 990) com.objectdb.o.InternalException

with an embeddable:         em.getTransaction().begin();         em.persist(new MyEntity());         em ... ();         // Update the embeddable:                  em.getTransaction().begin ... .getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction().commit

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