ObjectDB Database Search

51-100 of 200 results

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

EntityManager 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

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

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

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

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

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

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 ")) {       

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

successfully (i.e. it loaded) with ObjectDB, I was horrified to find that all of my collection ... manager or the entity manager factory after having detached the entity, the detached entity finds ... . To find any reference to the matter one has to examine the JPA2 spec Final: 7.6 Container-managed

Entity listener - event instead of object

database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't ... ready"); Inspiration be1 = em. find (Inspiration.class, be.getId()); logger.debug("Old inspiration entity ... of object that you want to update. If you ' find ()' object on this EntityManager you will get exactly

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

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

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

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

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

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

No Entity Class API

. For example, a tool that finds and replaces strings in the database should be generic ... database with no original classes: Use the Metamodel API to find details on the entity classes in ... to use. Your suggestion would be much more useful: "a tool that finds and replaces strings in

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

.objectdb.com/java/jpa/persistence/detach I can't find out how to test where an entity is detached ... the test project to find out why elements become detached (which I assume is breaking the lazy loading ... ; (Detachment) Pages 76 - 77 (Lazy Fetching) I appreciate your help - in addition to finding some

InternalException - error reading field from "queue" database

.EMImpl. find (EMImpl.java:554) at com.objectdb.jpa.EMImpl. find (EMImpl.java:472) ... 6 more Caused by ... ) at com.objectdb.jpa.EMImpl. find (EMImpl.java:549) ... 7 more Caused by: com.objectdb.o

Pessimistic lock timeout - blocks indefinitely

HashMap (); properties.put("javax.persistence.lock.timeout", 5000); MyEntity loaded = em. find (MyEntity ... put the find into a loop which catches the LockTimeoutException, puts the thread to sleep, then tries the find again. I'd expect this to achieve the same result as querying with a timeout (albeit

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

Internal exception on flush

= em. find (ExecutionGraph.class, id); if(loadedgraph == null) { em.persist(instance); em.flush ... ) at com.objectdb.o.OBC.aK(OBC.java:969) at com.objectdb.jpa.EMImpl. find (EMImpl.java:551) at com.objectdb.jpa.EMImpl. find (EMImpl.java:474) at rbccm.felix.objectdb.workflow.ObjectDbGraphContainer

PersistenceManagerFactory.getMapping() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory String getMapping () Get the Mapping setting for this factory. This is used to find the object-datastore mapping file(s). Return: the Mapping setting. Since: JDO 1.0

I18NHelper.getInstance(bundleName) - JDO Static Method

JDO Static Method in javax.jdo.spi.I18NHelper I18NHelper getInstance (   String bundleName ) An instance bound to a bundle. This method uses the current class loader to find the bundle. Parameters: bundleName - the name of the bundle Return: the helper instance bound to the bundle Since: JDO 1.0

I18NHelper.getInstance(cls) - JDO Static Method

JDO Static Method in javax.jdo.spi.I18NHelper I18NHelper getInstance (   Class cls ) An instance bound to a bundle. This method figures out the bundle name for the class object's package and uses the class' class loader to find the bundle. Note, the specified class object must not

I18NHelper.getInstance(bundleName,loader) - JDO Static Method

JDO Static Method in javax.jdo.spi.I18NHelper I18NHelper getInstance (   String bundleName,    ClassLoader loader ) An instance bound to a bundle. This method uses the specified class loader to find the bundle. Note, the specified class loader must not be null

javax.jdo.spi.JDOImplHelper

it. If not, try to find a constructor for the class with a single String argument. Otherwise, throw

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