ObjectDB ObjectDB

Internal Website Search

161-170 of 200 resultsRefresh

Null enums and IS (NOT) NULL: NullPointerException

") private EntityManager entityManager; public void persist(Object o) { try { transaction.begin(); entityManager.persist(o); transaction.commit ... { @PersistenceContext(unitName = "my-pu") private EntityManager entityManager; @EJB private TestManager

Empty temporary dat files in the temp folder

have a connection (open EntityManagerFactory). For each user action we create an EntityManager ... rollback the transaction and closing the EntityManager. In some scenarios we use additional databases as large data sink. And for optimized data access we hold the connection to the EntityManager. In

system exception occurred during an invocation on EJB GuestDao

" and imported it into eclipse: same problem (see below). How can I verify if the EntityManager has been successfully injected ? (statement : @PersistenceContext private EntityManager em) 2014-09-02T10:50 ... ;)Ljavax/persistence/EntityManager; at com.sun.enterprise.container.common.impl.EntityManagerWrapper

Database is erased after deploying a new web application version

of EntityManagerFactory and EntityManager? As long as the web-app is running, I have no intention of closing ... concurrently? > When should I use the close method of EntityManagerFactory and EntityManager ... EntityManager instances are created and closed on every request (creating EntityManager instances

Connection is closed Caused by: java.io.EOFException

an EntityManager. I have checked throughout my code to ensure that all instances of EntityManager that I ... );             emf.createEntityManager();         }     } } Notice that the EntityManager instances ... ();         }     } } Please check if your application might create EntityManager instances without closing them. By the way

Type xxx is not found (error 301)

your EntityManager:     em.unwrap(PersistenceManager.class).getExtent(User.class) support Support OK ... Moshal oddly, I don't have an unwrap() method on my EntityManager?? also, I don't have a query (String, Class) method on my EntityManager dmoshal David Moshal > 3) use jdo from jpa

How to Remove records from many to many relationship tables in JPA

.getId()); public void removeConclusions(Long id) { entityManager = dbConn.getConnection(); Conclusion conclusion = entityManager.find(Conclusion.class, id); entityManager.getTransaction().begin(); entityManager.remove(conclusion); entityManager

JQL-Update Queries fails with activated L2-Cache

When using JQL-Update Queries it is basically not working without calling entityManager.clear() after a transaction commit. When the clear() method isn't called the entityManager will never return ... the EntityManager may break its synchronization with the database. For example, the EntityManager

spuriously objectdb objects have null references

entityManager per thread and have a central point where we encapsulated all the needed entitymanager ... Object(); public static void begin(EntityManager threadEntityManager){ synchronized(lockBegin ... >(); ... hgzwicker Hans-Georg Zwicker When an entity object is detached (e.g. when the EntityManager

new objects not available in mappedBy associations

after the transaction is committed (or after the update and before commit, if your EntityManager ... the second query. Do I need to call refresh() on the object, query, or EntityManager? ps: setting FlushModeType.AUTO in the EntityManager resulted in a huge exception message. dmoshal David Moshal

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