Fast Object Database for Java - with JPA/JDO support

Internal Website Search

71-80 of 200 resultsRefresh
1

NullPointer on query

the exception is thrown from the find method rather than the query. The application is set to try find ... on the original persist/commit. Full code is: ObjectDbMessagePayload payload = em.find(ObjectDbMessagePayload.class, msg.getId()); if(payload == null) { //if we didn't find anything, try
1

Remove an entity which attributes were changed - OptimisticLockException

and with multiple plugins and find the exact point of difference between these two modes. support Support I have found the problem. Our entity had the version = 3 on entityA (Type A) and after a find operation ... EntityManager em = getEntityManager(); entityB = em.find(TypeB, uid of TypeB); I don't understand
1

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity ... ]"b2"] When I set DO_VIEW_BEFORE_CLOSE false, so that the fields are only accessed after the finding
1

Tracking changes to new collections (in enhancement mode) after flush

().commit();         em.clear();                  entity = em.find(ListInMap.class, id ... model save MappingImpl mapping1 = em.find(MappingImpl.class, m1.getUid ... .getTransaction().begin(); //------------------------------- mapping1 = em.find
1

New to Product & Having An Issue

(){ Department d = em.find(Department.class, this.departmentId); assertNotNull(d ... generated. However, the second test findDepartment fails to find any results and returns NULL, but does ... would be greatly appreciated. john_anderson_ii John Anderson Hi, I think that find returns null because different
1

Selective merge/cascade of detatched entity

with all their content (i.e. actually the entire database) and this is inefficient. Replacing the merge with find solves the problem:     s = em.find(Salesman.class, s.getId());    // em.merge(s); The last output ... access). Could this 'find' method ever return a different object (i.e. original != found but original
1

Query filter comparing Dates

(); // these queries should find 1 item assertQueryResultSize(0, pm.newQuery ... ); // these queries should find 0 item assertQueryResultSize(0, pm.newQuery(ClassWithDate ... with UTC timezone in Calendar and I get for the following tests : // these queries should find 1
1

Error reading UTF string

.Final.jar:7.1.1.Final] at granat.dp.ejb.PersonBeanLocal$$$view177.find(Unknown Source) [DP-domain.jar ... UTF string at granat.dp.ejb.PersonBean.find(PersonBean.java:287) [DP-ejb.jar:] at sun.reflect ... :] at com.objectdb.jpa.EMImpl.find(EMImpl.java:591) [objectdb-jee.jar:] at com.objectdb.jpa.EMImpl
1

Bug: ClassCastException by retrieval

);   System.out.printf("Original : %s %n",tn.getTa());   trans.commit();//*/     tNode tn2 = em.find(tNode.class, 1);   System.out.printf("find instancely : %s %n",tn2.getTa()); System.out.printf("Arrays ... (Arrays.toString(la));   em.clear();     tNode tn3 = em.find(tNode.class, 1);   System.out.printf
1

Unable to persist TreeMap

\\TestProject\\Storage.odb");         em = emf.createEntityManager();         p = em.find(Person.class ... information will help find the problem in the real application. I'll post what the original problem was when I find it. Your help and quick response was much appreciated. AlphaOne Ron Brennan

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