Internal Website Search
51-100 of 200 resultsEntityManager JPA or JDO impl and different behavior" then everything comes back correctly. However if I use em. find (SomeObject.class, id) the map is NOT populated. I ... , and the only difference I can find is the entityManager thats being used. BUT I can't seem to force the unit test ... . That still doesn't change the fact that in my project the em. find (type, id) doesn't populate | |
Remove an entity which attributes were changed - OptimisticLockException during the operations with one plugin and with multiple plugins and find the exact point ... = 3 on entityA (Type A) and after a find operation on another entityB (Type B) the version changed ... . find (TypeB, uid of TypeB); I don't understand why this operation leads to increase the version | |
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 ... ("cannot find ECompoundKeyMapItem 1"); } However it does not fail on Eclipselink. If I alter the code | |
Error reading UTF string] at granat.dp.ejb.PersonBeanLocal$$$view177. find (Unknown Source) [DP-domain.jar:] at granat.dp.ejb ... reading UTF string at granat.dp.ejb.PersonBean. find (PersonBean.java:287) [DP-ejb.jar:] at sun.reflect ... .jar:] at com.objectdb.o.OBC.aN(OBC.java:970) [objectdb-jee.jar:] at com.objectdb.jpa.EMImpl. find | |
Query filter comparing Dates(); // these queries should find 1 item assertQueryResultSize(0, pm.newQuery(ClassWithDate.class ... should find 0 item assertQueryResultSize(0, pm.newQuery(ClassWithDate.class, "this.date datum"), date ... now with UTC timezone in Calendar and I get for the following tests : // these queries should find 1 | |
Unable to persist TreeMap.createEntityManager(); p = em. find (Person.class, 1 ... ;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 Application | |
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 ... after the finding entity manager closes, I can still view a.listA_mapped, whereas a.listB_unmapped is not | |
Pre-detach loading: retrieval by navigation not working in if statement (yet). I have been unable to find the point of difference. So I will try first just showing selected ... out what is happening and why. I am using pre-detach loading after em. find (id), because just relying on JPA-annotations ... can configure an entity-query @EJB with a specific loader that - after the em. find (id) is performed - executes | |
Optimistic locking: prevent version increment on entity collection attribute. find (Document.class, doc.getId()); ArrayList readings = tmpDoc.getReadings ... don't have the cached Document and then find the Document by Id. - At that point the Document ... populate // the collection of Readings myself in the constructor em.clear(); Document tmpDoc = em. find | |
Type xxx is not found (error 301) query execution by using: em. find (User.class, User.class); but this is not ... ? dmoshal David Moshal Am not seeing a method: em. find (class, class), but there is one: em. find (class ... .class ? No - it is merely casting. Am not seeing a method: em. find (class, class), but there is one: em | |
Does ObjectDB support lazy loading?(); a = em. find (A.class, id); System.out.println(a.list); em.close(); emf.close(); } @Entity static class ... , and execute java ... LazyTest persist java ... LazyTest find The find prints out [B(0), B(0 ... ; System.out.println(id); } else if (args[0].equals(" find ")) {   | |
Schema Update: class hierarchy change; em.getTransaction().begin(); MyEntity entityWithID1 = em. find (MyEntity.class, 1 ... entityWithID1 = em. find (MyEntity.class, 1); System.out.println(entityWithID1.id);   ... using reflection (error 363) at com.objectdb.jpa.EMImpl. find (EMImpl.java:630) at com.objectdb.jpa | |
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 ... .AbstractEntityManagerImpl. find (AbstractEntityManagerImpl.java:816) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl. find (AbstractEntityManagerImpl | |
LAZY @ManyToOne field functions as EAGER_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager ... , so that the fields are only accessed after the finding entity manager closes, I can still view b.cLazy ... will discuss in another forum posting ] Q: Why is b.cLazy viewable after the finding entity manager closes | |
Bug: ClassCastException by retrieval; tNode tn2 = em. find (tNode.class, 1); System.out.printf(" find instancely : %s %n",tn2 ... tn3 = em. find (tNode.class, 1); System.out.printf(" find by retrieval : %s %n",tn3.getTa | |
Level 2 cache not hit in @ManyToOne. Level 2 JPA cache is activated and it works ok for find by id (tested by changing data in explorer and reading in my app). Problem 1: find by id on Item it's good, it hits the cache, but not for its field ... each time, even though user 5 has been previously loaded by find by id and its class is @Cacheable | |
Activation Issue persistable types (10) - exceeds evaluation limit (error 1011) at com.objectdb.jpa.EMImpl. find (EMImpl.java:556) at com.objectdb.jpa.EMImpl. find (EMImpl.java:474) at sun.reflect.GeneratedMethodAccessor34 ... ) at $Proxy37. find (Unknown Source) at com.googlecode.genericdao.dao.jpa.JPABaseDAO._persistOrMerge | |
Is it possible to remove parent/child entities without refresh? = entityManager. find (ParentEntity.class, Long.valueOf(1)); entityManager.getTransaction().begin ... ; ParentEntity parentEntity = entityManager. find (ParentEntity.class, Long.valueOf(1)); entityManager ... parentEntity = entityManager. find (ParentEntity.class, Long.valueOf(1)); entityManager.getTransaction | |
Broken @ManyToOne reference case that demonstrates the problem. support Support You'll find a tiny Eclipse project attached ... should be adjusted: // Child child = em. find (Child.class, Main.CHILD_ID);   ... .CHILD_ID; template.prn = parent; Child child = em. find (Child.class, template); It does not work | |
Update is ignored by ObjectDB the database, and User entity remains modified only in code, even if I go: user = smdb. find (User ... userID, int itemID) { Order order = shopdb. find (Order.class, orderID); if (order == null) { User user = smdb. find (User.class, userID); ShopItem item = shopdb. find (ShopItem.class, itemID); if (item | |
persists and update together ? and this will reduce finding same object again. On jpa : User obj2 = ...; User usr2 = entityManager. find (User.class,user.getGid()); if(usr2 != null) {   ... ; entityManager.persist(obj2); } We need to first find the object | |
Left join fetch behaviour doesn't retrieve children? have spent too many hours to find a test case and if i find it, it will be the third bug about the "join fetch" feature. 3 bugs discovered in few days ... i'm afraid to find more in the future, so let's stop ... , and the only way to find out what is best for a specific application is to benchmark the alternatives | |
Remove not working().commit(); em.close(); em = emf.createEntityManager(); em.getTransaction().begin(); b = em. find (B.class, 1); em.remove(b); A a = em. find (A.class, 2); em.remove(a); em.getTransaction().commit(); em.close ... less than 5% of the active users), you may find other minor issues (at the wrapper level, as the ObjectDB | |
OEM: Too many persistable types (>10) - exceeds evaluation limit (error 1011); (It helped me find a build order priority issue. I will also use the technique to put a safety ... to get such messages unless ObjectDB cannot find your entity classes in the classpath. When an entity ... to try to find JdoEntity class explicitly so I can report an error for myself so ObjectDB does not resort | |
TemporalType injection with Calendar using JPA=31,ZONE_OFFSET=0,DST_OFFSET=3600000] ]) as a primary key (error 691) at com.objectdb.jpa.EMImpl. find (EMImpl.java:554) at com.objectdb.jpa.EMImpl. find (EMImpl.java:472) ... my JPA findEntity call at sun ... ) at com.objectdb.jpa.EMImpl. find (EMImpl.java:536) ... 43 more Caused by: com.objectdb.o.InternalException | |
enumeration table? how to on pure jpa? way... I've looked some other annotations but i could not find any solution like this. kadirbasol ... of that class. The key field could also be set as a primary key for fast and simple access by find : String serverName = em. find (GlobalProperty.class, "serverName").getValue | |
PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException is expected: Exception in thread "main" [ObjectDB 2.2] javax.jdo.JDOUserException Failed to find ... .jdo.JDOUserException Failed to find multiple entities (error 636) The topmost entry of the stack trace ... is the real problem. Could you please check the log files? You may find the complete stack trace | |
CriteriaBuilder.least(x) - JPA Method JPA Method in 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 Return: least expression Since: JPA 2.0 | |
javax.persistence.NamedEntityGraph JPA Annotation NamedEntityGraph Target: TYPE Implemented Interfaces: Annotation Used to specify the path and boundaries for a find operation or query. Since: JPA 2.1 Public Annotation Attributes NamedAttributeNode [] attributeNodes default {} (Optional) A list of attributes of the entity | |
CriteriaBuilder.greatest(x) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression greatest ( Expression x ) Create an aggregate expression for finding the greatest of the values (strings, dates, etc). Parameters: x - expression representing input value to greatest operation Return: greatest expression Since: JPA 2.0 | |
stress test -> com.objectdb.o.InternalException: null.objectdb.o.OBC.aN(OBC.java:976) at com.objectdb.jpa.EMImpl. find (EMImpl.java:616) at com.objectdb.jpa.EMImpl. find (EMImpl.java:536) at org.apache.openejb.persistence.JtaEntityManager. find (JtaEntityManager.java:168) at com.fitbird.control.p2.WorkoutPlanC. find (WorkoutPlanC.java:56) at sun.reflect | |
Page cache File handling produced an java.io.IOException: Negative seek offset we get following exception when we execute a find () in a scenario, we can not readjust ... _541100773067300498\pages11.dat' (error 117) at com.objectdb.jpa.EMImpl. find (EMImpl.java:630) at com.objectdb.jpa.EMImpl. find (EMImpl.java:545) at com.btc | |
Inverse OneToMany Mapping and EmbeddedId.hibernate.jpa.boot.internal.PersistenceXmlParser - HHH000318: Could not find any META-INF/persistence ... types of an EmbeddedId. benchmark (huge time scaled sensor data set): v 2.9.0_04 (fast) find _1_N_1Y() PT19.06S -0.81G/0.68G find _1_N_1Y() PT24.17S -0.13G/0.73G find _1_A_1Y() PT37.456S -0.62G/0.49G | |
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 | |
Tracking changes to new collections (in enhancement mode) after flush; entity = em. find (ListInMap.class, id);   ... model save MappingImpl mapping1 = em. find (MappingImpl.class, m1.getUid());   ... (); //------------------------------- mapping1 = em. find (MappingImpl.class, m1.getUid()); mappings = mapping1.mappingMap.get("M | |
ObjectDB needs "insert ignore". However, to check if a specific primary key is in use, you may also use find or getReferemce (see this page ... primary key (see this page ). support Support I've discussed " find () cost unreasonable time!". You'd pointed this " Find is very efficient in retrieving a single entity object but less efficient | |
ArrayIndexOutOfBoundsException on flush) so using it would generate various exceptions, but these exceptions cannot help in finding ... is made as follows: IExecutionGraph loadedgraph = em. find (ExecutionGraph.class ... .aM(OBC.java:1056) at com.objectdb.o.OBC.aK(OBC.java:969) at com.objectdb.jpa.EMImpl. find (EMImpl | |
combined index not used Support we are a bit lost, where do we find that list/sequence of query plans ? hgzwicker Hans-Georg ... find attached the log of 2.7 hgzwicker Hans-Georg Zwicker Can you tell if this is the query plan ... .8.3, so the string has to be adjusted. Can you find this query plan in the log file when using 2.8.3 | |
again merger missing logs + objectdb exception. Please consider enabling recording . If we cannot find the cause now by analyzing the database ... We will try to find that query hgzwicker Hans-Georg Zwicker The connection between the  ... to find that. What is the id of that large corrupt property object ? hgzwicker Hans-Georg Zwicker The id | |
log entry and massive performance issues', you can find a number of these objects linked to objects with nodePath '/(EL)...' ad 4: we will try ... Hans-Georg Zwicker you can find the database on hummingbird-systems.com, login with user/password ... : the ObjectNode.nodepath is like '/(EL)ANYNAME/(EX)F', you can find a number of these objects linked | |
ObjectDB 2.0.0 and method finding problems. Fixed a bug in the results of IS [NOT] NULL queries. Fixed a bug in ... a bug in the new log based (recording) recovery from failure mechanism. Fixed a bug in finding an entity after a failed find followed by persist. Fixed a memory leakage in eager load of large object | |
Internal Exception and Index Problems Dear Support Team, we have an urgent issue in a productive database. The objectdb doctor finds ... Sebastian Kolb It would be great if you could find out how this happened because a lot ... the corrupted field userName=...). Even the doctor finds no error which makes it pretty hard to find | |
ClassCastException after upgrade to 2.3.5_03.objectdb.o.OBC.onObjectDBError(OBC.java:1487) at com.objectdb.jpa.EMImpl. find (EMImpl.java:559) at com.objectdb.jpa.EMImpl. find (EMImpl.java:474) at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe ... ) at com.objectdb.jpa.EMImpl. find (EMImpl.java:551) ... 7 more The class in question is defined as | |
Eager load Map so apologies for that. I've attached another go. The main difference here is that I'm using " find " to retrieve ... map is empty so nothing is printed to the console. If you uncomment the 2 lines after the " find ... . javaagent:objectdb.jar) but unenhanced it refuses to work when I use " find " to load the object. I've | |
Eager Fetch of Map with Entities as Keys = em. find (MyEntity.class, 1); em.close();   ... .objectdb.o.OBC.aK(OBC.java:971) at com.objectdb.jpa.EMImpl. find (EMImpl.java:551) at com.objectdb.jpa.EMImpl. find (EMImpl.java:474) at T618.main(T618.java:26) support Support | |
After using the enhancer, Lazy loaded collections are no longer loading. They are set as null); entityManager.flush(); account = entityManager. find (account); assertNonNull(account.getProjects ... . Particularly the invocation of find in your code does not compile. The following code included an attempt ... ; account = em. find (Account.class, 1); System.out.println | |
Exception Failed to read from file) at com.objectdb.jpa.EMImpl. find (EMImpl.java:596) at com.objectdb.jpa.EMImpl. find (EMImpl.java:514 ... .java:970) at com.objectdb.jpa.EMImpl. find (EMImpl.java:591) ... 10 more Caused by: java.io.EOFException | |
PersistenceManager.getObjectById(oid,validate) - JDO Method JDO Method in javax.jdo.PersistenceManager Object getObjectById ( Object oid, boolean validate ) This method locates a persistent instance in the cache of instances managed by this PersistenceManager . The getObjectById method attempts to find an instance in | |
JDOImplHelper.construct(className,keyString) - JDO Static Method registered, use it. If not, try to find a constructor for the class with a single String argument | |
javax.jdo.PersistenceManager method attempts to find an instance in the cache with the specified JDO identity. The oid parameter |