Fast Object Database for Java - with JPA/JDO support

Internal Website Search

81-90 of 200 resultsRefresh
1

Pre-detach loading: retrieval by navigation not working in if statement

have been unable to find the point of difference. So I will try first just showing selected portions of code ... and why. I am using pre-detach loading after em.find(id), because just relying on JPA-annotations ... -query @EJB with a specific loader that - after the em.find(id) is performed - executes selected
1

em.flush(); em.clear(); loosing data and not persisting managed objects

.flush(); em.clear(); } System.out.println("i="+i); TestEntity t1 = em.find ... my Primary Key. When doing this the em.find() method seems to be fast. But even with 2.2.3_09 applied I ... .OBC.aK(OBC.java:929) at com.objectdb.jpa.EMImpl.find(EMImpl.java:542) at com.objectdb.jpa.EMImpl
1

combined index not used

will probably be added in future to ObjectDB. support Support we are a bit lost, where do we find that list
1

LAZY @ManyToOne field functions as EAGER

, and when it is true the fields are accessed and output before the finding entity manager closes ... are only accessed after the finding entity manager closes, I can still view b.cLazy, whereas I ... another forum posting] Q: Why is b.cLazy viewable after the finding entity manager closes, when it is marked
1

Type xxx is not found (error 301)

execution by using:     em.find(User.class, User.class); but this is not a portable JPA code ... for unwrapping PersistenceManager.class ? dmoshal David Moshal Am not seeing a method: em.find (class, class), but there is one: em.find (class, object), so, what would the object be? dmoshal David
1

Schema Update: class hierarchy change

entityWithID1 = em.find(MyEntity.class, 1);   System.out.println(entityWithID1.id);   System.out.println ... .getTransaction().begin();   MyEntity entityWithID1 = em.find(MyEntity.class, 1);   System.out.println ... reflection (error 363) at com.objectdb.jpa.EMImpl.find(EMImpl.java:630) at com.objectdb.jpa.EMImpl.find
1

Entity is not related to ObjectDB, but i get exception from ObjectDB

Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive ... .Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl ... .AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:770) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1
1

Optimistic locking: prevent version increment on entity collection attribute

);        em.getTransaction().commit();        Document tmpDoc = em.find(Document.class, doc.getId ... don't have the cached Document and then find the Document by Id. - At that point the Document ... tmpDoc = em.find(Document.class, doc.getId()); ArrayList readings = tmpDoc
1

Update is ignored by ObjectDB

the database, and User entity remains modified only in code, even if I go: user = smdb.find(User ... orderID, Long userID, int itemID) { Order order = shopdb.find(Order.class, orderID); if (order == null) { User user = smdb.find(User.class, userID); ShopItem item = shopdb.find(ShopItem
1

Does ObjectDB support lazy loading?

= emf.createEntityManager(); a = em.find(A.class, id); System.out.println(a.list ... persist java ... LazyTest find The find prints out [B(0), B(0)]. Why it fails after the DB is re-opened ... ();          Long id = a.id;          System.out.println(id); } else if (args[0].equals("find

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