ObjectDB ObjectDB

Internal Website Search

161-170 of 200 resultsRefresh
9

Filename.odb$ Persisting Issue

("$objectdb/db/payrollDB - Copy0.odb"); public  static EntityManager departmentDB = emf.createEntityManager(); public  static EntityManager employeeDB = emf.createEntityManager(); public  static EntityManager paygradeDB = emf.createEntityManager(); public  static EntityManager programDB = emf
8

Cannot save or update entity on Spring App

: @PersistenceContext private EntityManager em; // Stores a new guest: @Transactional ... .getRequiredProperty(PROPERTY_NAME_ENTITYMANAGER_PACKAGES_TO_SCAN)); entityManagerFactoryBean ... : public Object persist(Object guest) { EntityManager em = entityManagerFactory
8

Duplicate Entity class names causes Exception in Query

static Singleton getInstance(EntityManager em) { Singleton c = em.find(Singleton.class, "1 ... ; @Basic protected java.lang.Integer lastInstance; public void generateItems(EntityManager em, int ... Item findItem(EntityManager em, int which) { TypedQuery<Item> q = em.createNamedQuery("objdbTest
8

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
8

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
8

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
7

500Mb ObjectDb database opening issue

.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager ... ); EntityManager em = emf.createEntityManager(); ms ... .createEntityManagerFactory( tmpDataBaseName ); m_EntityManager = m_EntityMgrFactory
1

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

Account(); entityManager.persist(account); entityManager.flush(); Project project = new Project(); project.setAccount(account); entityManager.persist(project); entityManager.flush(); account = entityManager.find(account); assertNonNull(account.getProjects()); Expected Result
1

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
1

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

the EntityManager and moved its connection to the pool. Then to ObjectDB (on the just closed EntityManager ... .createEntityManagerFactory(                 "objectdb:db/test.tmp;drop");                 EntityManager ... TestEntity());         em1.flush();                 EntityManager em2 = emf.createEntityManager

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