ObjectDB Database 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 | |
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 | |
Bidirectional OneToMany is slow on updated items. Every task run includes: Execution of 10,000 find requests of Person instances. Execution of 10,000 find ... the find calls of Address and Person instances with an in memory HashMap and get calls. support Support | |
"Attempt to lock a non entity object" error persistable type has been enhanced: Test Stored: Ron After find and first lock: Ron ... ; p = em. find (Person.class, 1); em.lock(p ... ("After find and first lock: " + p.name); em.getTransaction | |
Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x. Please find the odb file which i am using. I have already pasted the code which is being exeucted to run ... unexpectable for our software release. Please find the database file after repair binitbhaskar Binit ... after conversion and before running the Doctor, otherwise the Doctor cannot help. support Support Please find | |
How to check if an entity exists in a Database without loading it? Hi, I am trying to speed up some code - where i check if an entity exists in order to make a decision. In Java - It looks like this (pk - is the primary key of the entity): MyClass find = em. find (MyClass.class, pk); boolean exists = find != null; Is there a way to check the existence | |
Transaction isolation support? have been unable to find any documentation about how transaction isolation is handled. For example ... different http request) B: Fetch user. (User user=em1. find (User.class,1)). A: Fetch user (User user=em2. find (User.class,1)); B: Create and save a new Book, and add it as a book to the user. B | |
Updating Entities the data in my database. Another reason I don't find this possible is due to the fact that each view ... have "a" solution - though not ideal. I'll let you know what I find next week as my shift ... rather than finding it by exploring objects. support Support From what I can tell the em.clear() suggestion does | |
Glassfish 4 AbstractMethodError: com.objectdb.jpa.EMF.createEntityManager.EntityManagerWrapper. find (EntityManagerWrapper.java:341) at com.mirq.controller.UserC.findUser(UserC.java ... (EntityManagerWrapper.java:197) at com.sun.enterprise.container.common.impl.EntityManagerWrapper. find ... .sun.enterprise.container.common.impl.EntityManagerWrapper. find (EntityManagerWrapper.java:341) at com | |
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 | |
Query on primary key is slow when using 'IN' = '1205450' AND FALSE This query will obviously not find anything, but it still takes 2 minutes to complete ... never find anything, but the scan still happens. This is what I discovered first, and I was hoping ... entityManager. find to look up every entity by the primary key. This ended up being even faster | |
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 | |
Best practise loading big data this MyStepBlockCollection sbc = entityManager. find (id); for ( MyStepBlock sb : sbc.stepBlocks) { for ( MyStep ... above: MyStepBlockCollection sbc = entityManager. find (id); for ( MyStepBlock sb : sbc.stepBlocks ... . Or I cannot find them. I would like to start the discussion for an alternative iteration | |
Unexpected error when loading all entity instance Hi, when going through all entity instance to find orphaned entries we get the exception ... and then corrupts it? support Support Hello, I did not find a way to reproduce the error now. It seems there was insufficient memory on the maschine. I will observe the issue and update if I find a way |