Home » Search

About find

61-70 of 200 Refresh
JPA Doc
2

least(x)

Method javax.persistence.criteria.CriteriaBuilder Expression least(   Expression  x ) Create an aggregate expression for finding the least of the values (strings, dates, etc). Parameters: x - expression representing input value to least operation Returns: least expression Since: JPA 2.0
JDO Doc
2

setMapping(mapping)

Method javax.jdo.PersistenceManagerFactory void setMapping(   String mapping ) Set the Mapping setting for this factory. This is used to find the object-datastore mapping file(s). Parameters: mapping - the Mapping setting. Since: JDO 1.0
Forum
2

EntityManager JPA or JDO impl and different behavior

. However if I use em. find(SomeObject.class, id) the map is NOT populated. I created a simple test to demonstrate this, however in the simple test it all works fine, and the only difference I can find ... . That still doesn't change the fact that in my project the em. find(type, id) doesn't populate the nested map
Issue
2

NullPointer on query

well (see below). Interestingly the exception is thrown from the find method rather than the query. The application is set to try find and then revert to query is null is returned - this is legacy from when I had some ... are thrown on the original persist/commit. Full code is: ObjectDbMessagePayload payload = em. find
Forum
2

Remove an entity which attributes were changed - OptimisticLockException

plugins and find the exact point of difference between these two modes. I have found the problem. Our entity had the version = 3 on entityA (Type A) and after a find operation on another entityB (Type B ... = getEntityManager(); entityB = em. find(TypeB, uid of TypeB); I don't understand why this operation leads
Forum
2

Should derived fields of an EmbeddedId be manually maintained by app code?

@EmbeddedId, am I responsible for maintaining the derived fields of the @EmbeddedId? I could not find ... the embeddedIds explicitly and the test fails where it attempts to find an item with an @EmbeddedId ... TestException("cannot find ECompoundKeyMapItem 1"); } However it does not fail on Eclipselink. If I alter
Forum
2

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

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

.flush(); em.clear(); } System.out.println("i="+i); TestEntity t1 = em. find ... the resulting string as my Primary Key. When doing this the em. find() method seems to be fast ... .OBC.aK(OBC.java:929) at com.objectdb.jpa.EMImpl. find(EMImpl.java:542) at com.objectdb.jpa.EMImpl
Forum
2

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