ObjectDB Database Search
101-150 of 200 resultsproblem with lazy loading - unittest project attached ApplicationContext at org.springframework.test. context .TestContext.getApplicationContext(TestContext.java:308) ~[spring-test-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.test. context .support ... .java:109) ~[spring-test-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.test. context .support | |
Dirty checking there is: void postDirty(InstanceLifecycleEvent event) http://www.objectdb.com/api/java/jdo/ listener ... can see, there are: a) Lifecycle Listener classes, e.g: http://www.objectdb.com/java/jpa/persistence/event and b ... -commit' listener . I can guarentee single threaded access to a single EntityManager in an embedded | |
JPA lifecycle events across processes Hi, wondering if it's possible to listen for changes in one process from another process? ie: process A changes an entity process B listens for @PostPersist thanks dmoshal David Moshal This is not supported. You may be able to implement your own cross process event listeners based | |
BeanCreationException in spring data JPA with objectDB.preInstantiateSingletons(DefaultListableBeanFactory.java:580) at org.springframework. context .support ... ) at org.springframework. context .support.AbstractApplicationContext.refresh(AbstractApplicationContext ... .servlet. Context .startContext( Context .java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext | |
Trouble bug on explorer] : CGContextGetCTM: invalid context 0x0 Jul 19 20:00:52 KadirBASOL.local java[9942] : CGContextSetBaseCTM: invalid context 0x0 Jul 19 20:00:52 KadirBASOL.local java[9942] : CGContextGetCTM: invalid context 0x0 Jul 19 20:00:52 KadirBASOL.local java[9942] : CGContextSetBaseCTM: invalid context 0x0 Exception in | |
Spring Data JPA - PersistenceException thrown. context .annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:461) at org.springframework. context .annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:435) at org.springframework. context .annotation | |
Is it possible to commit only specific elements?, or at least update a single table, disregarding the other entities loaded in the persistency context ? I have a complex hierarchy of intertwined objects. Currently I am clearing my persistency context ... previously retrieved and finally committing. My context is big data and performance is an issue | |
Adding EntityListener Throws Unexpected Internal Exception.. } and listener like below: public class MyListener { @PostLoad   ... Weishaupt This is an unexpected exception. It is thrown during analysis of the listener class in | |
How to deploy an Objectdb project with Jboss AS 7?.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:9999 04:56:02,526 INFO [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on localhost/127.0.0.1:4447 04:56 | |
Maven driven compile time ehnancement the listener during run, and not by the Maven enhancement that failed. Your solution solves the problem ... . With the domain class project, I also have "Entity Listeners " so I omit those packages, but I'm a bit | |
ObjectDB is opening too many sockets released some of these objects, reducing the number from 1860 to 1149. The ObjectDB server listens ... to stop ServerSocket listening : https://stackoverflow.com/questions/2983835 | |
Spring Data JPA when the context starts. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ... ) at org.springframework. context .support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework. context .support | |
Visibility of changes in Transaction is not visible to a JPA QL Query context = new InitialContext(); javax.transaction.UserTransaction tx = (javax.transaction.UserTransaction) context .lookup("java:comp/UserTransaction"); tx.begin(); SLSBObjDbRemote bean = (SLSBObjDbRemote) context   | |
A lot of ENT and SIV instances which are not cleared by GC.jboss.weld.bean.ManagedBean.destroy(ManagedBean.java:186) at org.jboss.weld. context .ForwardingContextual.destroy(ForwardingContextual.java:31) at org.jboss.weld. context .AbstractContext.destroyContextualInstance(AbstractContext.java:150) at org.jboss.weld. context .AbstractContext.destroy | |
can't get HashMap out of the database;ClassPathXmlApplicationContext context =   ... ; guestDao = context .getBean(GuestDao.class);   ... Context , as discussed in this forum thread . In addition, you have to use the last build (2.3.2_04 | |
Eclipse plugin problem (using ObjectDB as a separate bundle).core.internal.di.InjectorImpl.invoke(InjectorImpl.java:185) at org.eclipse.e4.core. contexts ... . contexts .window,,,system) Binding(ALT+SHIFT+D G, ParameterizedCommand(Command(org.codehaus.groovy ... ; ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui. contexts .window | |
Cannot initialize db after inserting a java.util.List) at org.mortbay.jetty.servlet. Context .startContext( Context .java:136) at org.mortbay.jetty.webapp ... ) at org.mortbay.jetty.servlet. Context .startContext( Context .java:136) at org.mortbay.jetty.webapp | |
Eclipse4 RCP - No Persistence provider for EntityManager by the plugins ClassLoader. I have no clue how to solve that Problem. Setting the Context Classloader ... to get around these ClassLoader issues paddy Patrick Gerhardt If setting the context class loader works ... available in LocalEntity location, so you can change the context class loader only later | |
Activation Issue it doesn't matter because it dies before connecting. The project starts a Spring application context ... (DefaultListableBeanFactory.java:687) at org.springframework. context .support ... . context .support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org | |
Pooling of EntityManagers this is the most expensive resource. However, the persistence context , i.e., the first level cache that an  ... the persistence context ). However, whether it improves performance or not depends on too many factors ... then you empty the persistence context / first level cache. However, possibly the main gain from pooling | |
EnumConstRef jakarta.persistence.PersistenceContextType.EXTENDED JPA Enum Constant in jakarta.persistence.PersistenceContextType EXTENDED Extended persistence context Since: JPA 1.0 | |
AnnotationRef jakarta.persistence.PersistenceContexts JPA Annotation PersistenceContexts Target: TYPE Implemented Interfaces: Annotation Declares one or more PersistenceContext annotations. It is used to express a dependency on container-managed entity manager persistence contexts . See Also: PersistenceContext Since: JPA 1.0 Public Annotation | |
EnumConstRef jakarta.persistence.PersistenceContextType.TRANSACTION JPA Enum Constant in jakarta.persistence.PersistenceContextType TRANSACTION Transaction-scoped persistence context Since: JPA 1.0 | |
EntityManager.lock(entity,lockMode,options) - JPA Method JPA Method in jakarta.persistence.EntityManager void lock ( Object entity, LockModeType lockMode, LockOption... options ) Lock an entity instance belonging to the persistence context , obtaining the specified plain, using | |
ClassRef jakarta.persistence.PersistenceException , and QueryTimeoutException , cause the current transaction, if one is active and if the persistence context | |
EntityManager.find(entityClass,primaryKey) - JPA Method JPA Method in jakarta.persistence.EntityManager T find ( Class entityClass, Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context , it is returned | |
EntityManager.remove(entity) - JPA Method JPA Method in jakarta.persistence.EntityManager void remove ( Object entity ) Mark a managed entity instance as removed, resulting in its deletion from the database when the persistence context is synchronized with the database. This operation cascades to every entity related by | |
AnnotationAttrRef jakarta.persistence.PersistenceContext.name JPA Annotation Attribute in jakarta.persistence.PersistenceContext String name default "" (Optional) The name by which the entity manager is to be accessed in the environment referencing context ; not needed when dependency injection is used. Since: JPA 1.0 | |
StoredProcedureQuery.executeUpdate() - JPA Method - if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException | |
EntityManager.clear() - JPA Method JPA Method in jakarta.persistence.EntityManager void clear () Clear the persistence context , causing all managed entities to become detached. Changes made to entities that have not already been flushed to the database will never be made persistent. Since: JPA 1.0 | |
EntityManager.getLockMode(entity) - JPA Method JPA Method in jakarta.persistence.EntityManager LockModeType getLockMode ( Object entity ) Get the current plain held by this persistence context on the given managed entity instance. Parameters: entity - a managed entity instance Return: the lock mode currently held Throws | |
EntityManager.lock(entity,lockMode,properties) - JPA Method JPA Method in jakarta.persistence.EntityManager void lock ( Object entity, LockModeType lockMode, Map properties ) Lock an entity instance belonging to the persistence context , obtaining the specified plain, using the specified | |
EntityManager.lock(entity,lockMode) - JPA Method JPA Method in jakarta.persistence.EntityManager void lock ( Object entity, LockModeType lockMode ) Lock an entity instance belonging to the persistence context , obtaining the specified plain. If a pessimistic lock mode type is specified and the entity | |
EntityManager.getFlushMode() - JPA Method JPA Method in jakarta.persistence.EntityManager FlushModeType getFlushMode () Get the plain that applies to all objects contained in the persistence context . Return: the current {@link FlushModeType} Since: JPA 1.0 | |
EntityManager.find(entityClass,primaryKey,properties) - JPA Method. If the entity instance is contained in the persistence context , it is returned from there. If a vendor | |
EntityManager.setFlushMode(flushMode) - JPA Method JPA Method in jakarta.persistence.EntityManager void setFlushMode ( FlushModeType flushMode ) Set the plain that applies to all objects contained in the persistence context . Parameters: flushMode - flush mode Since: JPA 1.0 | |
EntityManager.flush() - JPA Method JPA Method in jakarta.persistence.EntityManager void flush () Synchronize changes held in the persistence context to the underlying database. Throws: TransactionRequiredException - if there is no transaction or if the entity manager has not been joined to the current transaction PersistenceException - if the flush fails Since: JPA 1.0 | |
Query.getSingleResultOrNull() - JPA Method context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails | |
EntityManager.runWithConnection(action) - JPA Method is associated with a transaction, the action is executed in the context of the transaction. The given | |
EntityManager.callWithConnection(function) - JPA Method . If this EntityManager is associated with a transaction, the function is executed in the context | |
AnnotationAttrRef jakarta.persistence.JoinColumn.name JPA Annotation Attribute in jakarta.persistence.JoinColumn String name default "" (Optional) The name of the foreign key column. The table in which this column is found depends on the context . If the join is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy, the foreign key | |
AnnotationRef jakarta.persistence.JoinColumn of the foreign key column. The table in which this column is found depends on the context . If the join | |
EntityManager.joinTransaction() - JPA Method JPA Method in jakarta.persistence.EntityManager void joinTransaction () Indicate to the entity manager that a JTA transaction is active and join the persistence context to it. This method should be called on a JTA application managed entity manager that was created outside the scope of the active | |
AnnotationRef jakarta.persistence.MappedSuperclass used to map plain. However, these mappings are interpreted in the context of each entity class | |
EntityManager.close() - JPA Method manager is joined to an active transaction, the persistence context remains managed until the transaction | |
ClassRef jakarta.persistence.EntityExistsException may be thrown at flush or commit time. The current transaction, if one is active and the persistence context | |
TypedQuery.getSingleResultOrNull() - JPA Method the persistence context has not been joined to the transaction PessimisticLockException | |
InterfaceRef jakarta.persistence.criteria.CriteriaUpdate manually validate the value of the version column. The persistence context is not automatically | |
[ObjectDB 2.4.1] Unexpected exception (Error 990).evaluate(RunBefores.java:27) at org.springframework.test. context .junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test. context .junit4 ... .springframework.test. context .junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct) objects in the persistence context are detached. Because the ownedElements relationship is defined as LAZY ... by the persistent context (EntityManager) and changes made to the objects will be tracked as ... - 142 (Transaction-Scoped Persistence Contexts / Extended Persistence Contexts ) Pages 159 - 160  |