ObjectDB Database Search
101-150 of 200 resultsCustom Transaction Manager manager . ObjectDB doesn't allow me to configure custom JNDI name or Transaction Manager class ... and most JVM languages, as it is a pure Java library. However, regarding container managed (and automatic) transaction management , etc. ObjectDB i basically compatible with standard Java EE containers | |
Mysterious "Attempt to persist a reference to a non managed instance" error transaction: Attempt to persist a reference to a non managed failing.Ostrich instance (error 613 ... a reference to a non managed failing.Ostrich instance at com.objectdb.o._PersistenceException.b ... more Caused by: com.objectdb.o.UserException: Attempt to persist a reference to a non managed failing | |
Attempt to refresh a non managed entity object (error 635).IllegalArgumentException Attempt to refresh a non managed entity object (error 635) Nothing changed in my code ... ) on a non managed entity object, i.e. a new entity object that has not been persisted yet, or ... , am noticing a few weird things in my tests, for example, managed , but objects surviving a rollback. Pretty | |
2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object" a primary key of a managed object", but my application is not trying to change the primary key.  ... The exception should be thrown on an attempt to modify a primary key of a managed object. Older ... key of a managed object" So I assumed it was relevant to the thread. This was an error | |
Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers Hi, Object are not being persisted when ObjectDB and another db is used in the same application (through spring) with different tx managers , please find an example of this below. Any help ... persistence unit. You should be able to specify the ObjectDB transaction manager explicitly: @Transactional | |
Embedding Managed Entities in Embedded Objects = bad idea Discovered that you can't embed entities in embeddable objects if the entity is managed . Haven't tried embedding un- managed entities in embeddable objects, though I imagine that's not a great idea. The the error message isn't all that obvious (attempting to persist object which already has an id | |
Server connection management with the transaction commited and manager closed at the end of each action | |
Internal objectdb error when open a database or open an entity manager we get following exception when we open a database or open an entity manager Exception in thread "ODB IndexActivation" [ObjectDB 2.6.6_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_51 (on Windows 7 6.1). Please report this error on http://www | |
NPE when getting Persistence manager Hi, on 1 of our databases we get this exception upon trying to get the Persistence Manager . We use there ODB version 2.8.3.b05 in embedded mode. java.lang.NullPointerException: Cannot invoke "com.objectdb.o.MMM.y()" because " " is null at com.objectdb.o.TYS.f(TYS | |
Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error to persist a reference to a non managed ObjectDbCascadingMergeTest$Parent instance - field | |
Managing software release cycles. How do you manage software release cycles with objectDB? For example we might have different installation of a given web application, and we might need to introduce new fields with default values or to change something in the database "structure". How can we apply the update script | |
Is ObjectDB suitable for DMS (Document Management System)? Is ObjectDB suitable for DMS (Document Management System) like application that requires to store attachments in database? I specificaly mean the ability to store and handle file attachments(MS Office, OpenOffice files, PDF files etc.) properly. Are there any limits on database size or attachment | |
ObjectDB Project ManagementObjectDB Project Management | |
em.flush(); em.clear(); loosing data and not persisting managed objectsem.flush(); em.clear(); loosing data and not persisting managed objects | |
Entity Management Config questionsEntity Management Config questions | |
ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed a transaction (including the entity manager ) the ODB file writer still holds a reference to entities ... which hold much memory, if we execute several transactions on the identical entity manager ... of different Db files at the same time, each with own entitiy manager and open transaction holding | |
OutOfMemoryError, if close the entity manager Hello, why this error occurs during close the entity manager ? Caused by: java.lang.OutOfMemoryError: Java heap space at com.objectdb.o.PageCacheFile.m(PageCacheFile.java:173) ~[na:na] at com.objectdb.o.PAG.N(PAG.java:498) ~[na:na] at com.objectdb.o.PAG.y(PAG.java:282) ~[na:na] at com | |
Error during closing an entity managerError during closing an entity manager | |
jakarta.persistence.PersistenceUnitTransactionType: Constable , Comparable , Serializable Enumerates the possible approaches to transaction management in Jakarta Persistence. An EntityManager may be a JTA entity manager , where transaction management is done via JTA, or it may be a resource-local entity manager , where transaction management is performed | |
jakarta.persistence.PersistenceConfiguration to configure a container- managed persistence unit. That is, the configured persistence unit ... the EntityManagerFactory available as a CDI managed bean. @Produces @ApplicationScoped @Documents ... may be used to make the EntityManager available as a CDI managed bean. @Produces @TransactionScoped | |
jakarta.persistence.metamodel.Metamodel managed types. Returns: the metamodel managed types. Since: Jakarta Persistence (JPA) 1.0 ManagedType managedType ( Class cls ) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Returns | |
jakarta.persistence.TypedQuery for the query object, returns the flush mode in effect for the entity manager . Inherited from Query Returns ... retrieval mode overrides the cache retrieve mode in use by the entity manager . Overrides Query ... the cache storage mode in use by the entity manager . Overrides Query.setCacheStoreMode Parameters | |
jakarta.persistence.Query effect for the entity manager . Returns: flush mode. Since: Jakarta Persistence (JPA) 2.0 Map getHints ... overrides the cache retrieve mode in use by the entity manager . Parameters: cacheRetrieveMode - cache ... execution. This cache storage mode overrides the cache storage mode in use by the entity manager | |
jakarta.persistence.StoredProcedureQuery been set for the query object, returns the flush mode in effect for the entity manager . Inherited from ... . This cache retrieval mode overrides the cache retrieve mode in use by the entity manager . Overrides ... storage mode overrides the cache storage mode in use by the entity manager . Overrides Query | |
jakarta.persistence.EntityManager.refresh(Object,LockModeType); Object entity , LockModeType lockMode ) Refresh the state of the given managed entity ... rollback. Parameters: lockMode - lock mode entity - a managed entity instance Throws ... an entity or if the entity is not managed . PersistenceException - if an unsupported lock | |
jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map) of the given managed entity instance from the database, overwriting unflushed changes ... the provider, the hint may or may not be observed. Parameters: lockMode - lock mode entity - a managed entity ... if the entity is not managed . PersistenceException - if an unsupported lock | |
jakarta.persistence.EntityManager.refresh(Object,RefreshOption...); Object entity , RefreshOption... options ) Refresh the state of the given managed ... - standard and vendor-specific options entity - a managed entity instance Throws: PessimisticLockException ... if the entity is not managed . PersistenceException - if an unsupported lock | |
jakarta.persistence.EntityManager.close() an application- managed entity manager . After invocation of close() , every method of the EntityManager ... , and EntityManager.isOpen (which returns false). If this method is called when the entity manager is joined to an active transaction, the persistence context remains managed until the transaction completes | |
jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType,Map) a new JTA application- managed EntityManager with the specified synchronization type and map ... - how and when the entity manager should be synchronized with the current JTA transaction map - properties for entity manager Returns: entity manager instance. Throws: IllegalStateException - if the entity | |
jakarta.persistence.EntityManager.persist(Object); Object entity ) Make a new entity instance managed and persistent, resulting in its insertion in ... managed , undoing the effect of a previous call to EntityManager.remove . This operation cascades ... is already managed , that is, if it already belongs to this persistence context, and has not been marked | |
jakarta.persistence.EntityManager.merge(T) is synchronized with the database. Return a managed instance with the same persistent state as the given ... an association marked cascade=MERGE . If the given entity instance is managed , that is, if it belongs ... still cascades, and it is returned directly. Parameters: entity - a new, managed , or detached entity | |
jakarta.persistence.PersistenceUnitUtil Jakarta Persistence (JPA) Interface jakarta.persistence.PersistenceUnitUtil Super Interfaces: PersistenceUtil Utility interface between the application and the persistence provider managing ... or managed by entity managers for this persistence unit or on new entity instances. Since: Jakarta | |
jakarta.persistence.PersistenceContext Interfaces: Annotation Target: Type, Method, Field Expresses a dependency on a container- managed ... Elements String name (Optional) The name by which the entity manager is to be accessed in the environment ... the persistence.xml file. If the unitName element is specified, the persistence unit for the entity manager | |
jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType)- managed EntityManager with the specified synchronization type. This method returns a new ... instance. Parameters: synchronizationType - how and when the entity manager should be synchronized with the current JTA transaction Returns: entity manager instance. Throws: IllegalStateException | |
jakarta.persistence.EntityManager.refresh(Object); Object entity ) Refresh the state of the given managed entity instance from the database ... an association marked cascade=REFRESH . Parameters: entity - a managed entity instance Throws ... - if the instance is not an entity or the entity is not managed . TransactionRequiredException | |
jakarta.persistence.EntityManager.refresh(Object,Map); Object entity , Map properties ) Refresh the state of the given managed entity instance ... : entity - a managed entity instance properties - standard and vendor-specific properties and hints ... . IllegalArgumentException - if the instance is not an entity or the entity is not managed . TransactionRequiredException | |
jakarta.persistence.metamodel.Metamodel.managedType(Class) managedType ( Class cls ) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Returns: the metamodel managed type. Throws: IllegalArgumentException - if not a managed class. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.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 transaction or on an entity manager of type SynchronizationType.UNSYNCHRONIZED | |
jakarta.persistence.EntityManagerFactory.createEntityManager(Map) createEntityManager ( Map map ) Create a new application- managed EntityManager with the given ... - properties for entity manager Returns: entity manager instance. Throws: IllegalStateException - if the entity manager factory has been closed. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.getLockMode(Object) managed entity instance. Parameters: entity - a managed entity instance Returns: the lock mode ... is not a managed entity. TransactionRequiredException - if there is no active transaction or if the entity manager has not been joined to the current transaction. Since: Jakarta Persistence (JPA) 2.0 | |
jakarta.persistence.EntityManager.remove(Object); Object entity ) Mark a managed entity instance as removed, resulting in its deletion from ... still cascades. Parameters: entity - a managed , new, or removed entity instance Throws: IllegalArgumentException ... - if invoked on a container- managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.LockModeType.OPTIMISTIC on a versioned object, the entity manager must ensure that neither of the following ... LockModeType.PESSIMISTIC_READ or LockModeType.PESSIMISTIC_WRITE on an object, the entity manager | |
jakarta.persistence.PersistenceContexts Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PersistenceContexts Implemented Interfaces: Annotation Target: Type Declares one or more PersistenceContext annotations. It is used to express a dependency on container- managed entity manager persistence contexts | |
jakarta.persistence.PersistenceUnit (Optional) The name by which the entity manager factory is to be accessed in the environment ... .xml file. If specified, the persistence unit for the entity manager factory that is accessible in JNDI | |
jakarta.persistence.metamodel.ManagedType.getDeclaredAttributes() Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredAttributes() Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes. Returns: declared attributes of the managed type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Graph.addSubgraph(String); String attributeName ) Add a node to the graph that corresponds to a managed type. This allows for construction of multi-node entity graphs that include related managed types. Parameters ... type is not a managed type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Graph.addSubgraph(Attribute); Attribute attribute ) Add a node to the graph that corresponds to a managed type. This allows for construction of multi-node entity graphs that include related managed types. Parameters: attribute ... has been statically defined. IllegalArgumentException - if the attribute's target type is not a managed type. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Graph.addKeySubgraph(Attribute); Attribute attribute ) Add a node to the graph that corresponds to a map key that is a managed type. This allows for construction of multi-node entity graphs that include related managed types ... target type is not a managed type entity. Deprecated: use Graph.addMapKeySubgraph Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Graph.addKeySubgraph(Attribute,Class) key that is a managed type with inheritance. This allows for construction of multi-node entity graphs that include related managed types. Subclass subgraphs will automatically include the specified ... defined. IllegalArgumentException - if the attribute's target type is not a managed type entity | |
jakarta.persistence.Graph.addKeySubgraph(String); String attributeName ) Add a node to the graph that corresponds to a map key that is a managed type. This allows for construction of multi-node entity graphs that include related managed types ... - if the attribute's target type is not a managed type. Since: Jakarta Persistence (JPA) 1.0 |