Home » Search

About find

71-80 of 200Refresh
Forum
2

New to Product & Having An Issue

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

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
Forum
2

Unable to persist TreeMap

\\TestProject\\Storage.odb");         em = emf.createEntityManager();         p = em.find(Person ... realized existed. I neglected to check first. Hopefully this additional information will help find the problem in the real application. I'll post what the original problem was when I find it. Your help
Forum
2

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
Forum
1

Optimistic locking: prevent version increment on entity collection attribute

);     em.persist(doc);        em.getTransaction().commit();        Document tmpDoc = em.find ... the transaction. - I then clear the EntityManager so I don't have the cached Document and then find ... em.clear(); Document tmpDoc = em.find(Document.class, doc.getId
Forum
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
Forum
1

Type xxx is not found (error 301)

. In ObjectDB you can also introduce the new class before query execution by using:     em.find(User ... a method: em.find (class, class), but there is one: em.find (class, object ... for unwrapping PersistenceManager.class ? No - it is merely casting. > Am not seeing a method: em.find
Forum
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
Forum
1

Does ObjectDB support lazy loading?

.createEntityManager(); a = em.find(A.class, id); System.out.println(a.list); em ... change the main method as follow, and execute java ... LazyTest persist java ... LazyTest find The find ... ;          System.out.println(id); } else if (args[0].equals("find")) {          A a = em.find(A.class, 1
Forum
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