Internal Website Search
101-150 of 200 resultsAttempt 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 | |
javax.persistence.EntityManagerFactory JPA Interface EntityManagerFactory Interface used to interact with the entity manager factory for the persistence unit. When the application has finished using the entity manager factory, and/or at application shutdown, the application should close the entity manager factory | |
javax.persistence.Subgraph a subgraph for an attribute node that corresponds to a Managed Type. Using this class, an entity subgraph ... of the attribute Throws: IllegalArgumentException - if the attribute is not an attribute of this managed ... that is a managed type. This allows for construction of multinode entity graphs that include related | |
javax.persistence.EntityGraph that is a managed type. This allows for construction of multi-node entity graphs that include related managed ... , Class type) Add a node to the graph that corresponds to a map key that is a managed type ... managed types. Subclass subgraphs will include the specified attributes of superclass subgraphs | |
javax.persistence.metamodel.Metamodel managed types. Return: the metamodel managed types Since: JPA 2.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 Return: the metamodel managed type | |
EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method application- managed EntityManager with the specified synchronization type and map of properties ... will return true on the returned instance. Parameters: synchronizationType - how and when the entity manager should be synchronized with the current JTA transaction map - properties for entity manager Return | |
EntityManager.close() - JPA Method JPA Method in javax.persistence.EntityManager void close () Close an application- managed entity manager . After the close method has been invoked, all methods on the EntityManager instance and any ... ). If this method is called when the entity manager is joined to an active transaction, the persistence context | |
EntityManagerFactory.createEntityManager(synchronizationType) - JPA Method; SynchronizationType synchronizationType ) Create a new JTA application- managed ... : synchronizationType - how and when the entity manager should be synchronized with the current JTA transaction Return: entity manager instance Throws: IllegalStateException - if the entity manager factory | |
EntityManager.refresh(entity,lockMode,properties) - JPA Method - if the instance is not an entity or the entity is not managed TransactionRequiredException - if invoked on a container- managed entity manager of type PersistenceContextType.TRANSACTION when there is no transaction; if invoked on an extended entity manager when there is no transaction and a lock mode | |
EntityManager.refresh(entity,lockMode) - JPA Method - if the instance is not an entity or the entity is not managed TransactionRequiredException - if invoked on a container- managed entity manager of type PersistenceContextType.TRANSACTION when there is no transaction; if invoked on an extended entity manager when there is no transaction and a lock mode | |
Metamodel.managedType(cls) - JPA Method cls ) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Return: the metamodel managed type Throws: IllegalArgumentException - if not a managed class Since: JPA 2.0 | |
EntityManagerFactory.createEntityManager(map) - JPA Method; Map map ) Create a new application- managed EntityManager with the specified Map ... will return true on the returned instance. Parameters: map - properties for entity manager Return: entity manager instance Throws: IllegalStateException - if the entity manager factory has been closed Since: JPA 1.0 | |
Subgraph.addSubgraph(attributeName) - JPA Method;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: attributeName - name ... is not an attribute of this managed type. IllegalArgumentException - if the attribute's target type | |
EntityManager.joinTransaction() - JPA Method 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 to associate | |
javax.persistence.PersistenceUnitUtil JPA Interface PersistenceUnitUtil Super Interfaces: PersistenceUtil Utility interface between the application and the persistence provider managing the persistence unit. The methods of this interface should only be invoked on entity instances obtained from or managed by entity managers | |
EntityManagerFactory.createEntityManager() - JPA Method a new application- managed EntityManager . This method returns a new EntityManager instance each time it is invoked. The isOpen method will return true on the returned instance. Return: entity manager instance Throws: IllegalStateException - if the entity manager factory has been closed Since: JPA 1.0 | |
Subgraph.addKeySubgraph(attributeName,type) - JPA Method that is a managed type with inheritance. This allows for construction of multi-node entity graphs that include related managed types. Subclass subgraphs will include the specified attributes ... of this entity. IllegalArgumentException - if the attribute's target type is not a managed type | |
Subgraph.addSubgraph(attributeName,type) - JPA Method JPA Method in javax.persistence.Subgraph Subgraph addSubgraph ( String attributeName, Class type ) Add a node to the graph that corresponds to a managed type ... of this managed type. IllegalArgumentException - if the attribute's target type is not a managed type | |
Subgraph.addSubgraph(attribute) - JPA Method;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 - attribute Return ... is not a managed type IllegalStateException - if the EntityGraph has been statically defined Since: JPA 2.1 | |
Subgraph.addKeySubgraph(attributeName) - JPA Method;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. Parameters ... - if the attribute's target type is not a managed type IllegalStateException - if this EntityGraph has been statically defined Since: JPA 2.1 | |
Subgraph.addKeySubgraph(attribute,type) - JPA Method 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 ... a managed type entity IllegalStateException - if this EntityGraph has been statically defined Since: JPA 2.1 | |
Subgraph.addKeySubgraph(attribute) - JPA Method;attribute ) Add a node to the graph that corresponds to a map key that is a managed type. This allows for construction of multinode entity graphs that include related managed types. Parameters ... - if the attribute's target type is not a managed type entity IllegalStateException - if this EntityGraph has been statically defined Since: JPA 2.1 | |
EntityManager.merge(entity) - JPA Method Return: the managed instance that the state was merged to Throws: IllegalArgumentException ... when invoked on a container- managed entity manager of that is of type PersistenceContextType.TRANSACTION Since: JPA 1.0 | |
EntityManager.persist(entity) - JPA Method an instance managed and persistent. Parameters: entity - entity instance Throws ... an entity TransactionRequiredException - if there is no transaction when invoked on a container- managed entity manager of that is of type PersistenceContextType.TRANSACTION Since: JPA 1.0 | |
javax.jdo.PersistenceManager to manage the life cycle of PersistenceCapable instances. A PersistenceManager is obtained from ... throws JDOUserException if the instance is transient or is managed by another PersistenceManager ... ;persistenceCapableClass, boolean subclasses) The PersistenceManager manages a collection of instances in | |
javax.jdo.spi.PersistenceCapable JDO Interface PersistenceCapable A class that can be managed by a binary-compatible JDO ... to manage the instances. It also defines methods that allow a JDO aware application to examine ... if the other instance is not managed by the same StateManager as this instance. Parameters | |
javax.jdo.Transaction. These options are valid for both managed and non- managed transactions. Transaction initiation and completion methods have similar semantics to javax.transaction.UserTransaction when used outside a managed environment. When used in a managed environment, transaction initiation and completion methods | |
javax.jdo.spi.RegisterClassEvent - the persistence-capable class fieldNames - the names of the managed fields fieldTypes - the types of the managed fields fieldFlags - the flags of the managed fields persistenceCapableSuperclass ... of the managed field of the persistence-capable class. Return: the flags of the managed fields | |
javax.jdo.spi.JDOImplHelper only if they are authorized by the security manager . To avoid having every call go through the security manager , only the call to get an instance is checked. Once an implementation has an instance, any ... . This method is generated in the PersistenceCapable class to generate a call to the field manager | |
javax.jdo.spi.JDOPermission code. manageMetadata This allows managing metadata for any PersistenceCapable class ... ) normally unavailable would be manageable (modifiable) by malicious code. closePersistenceManagerFactory ... _ MANAGER _FACTORY An instance of JDOPermission to be used for closePersistenceManagerFactory permission | |
javax.jdo.JDOHelper of PersistenceCapable classes have a JDO identity managed by the PersistenceManager . This method returns ... instance with the same data store identity. If the JDO identity is managed by the application ... the PersistenceCapable class. If the JDO identity is not managed by the application or the data store | |
javax.jdo.PersistenceManagerFactory factory. This is needed for managed environments to get nontransactional connections for optimistic ... () Get the name for the second data store connection factory. This is needed for managed ... connection factory. This is needed for managed environments to get nontransactional connections | |
PersistenceManager.getObjectId(pc) - JDO Method: those that are managed by the application, and those that are managed by the data store. If the object identity ... , nor is it necessarily an instance of the class used to manage identity internally. Therefore, if the application ... application- managed (primary key) JDO identity. If it is used for instances of classes using datastore | |
javax.jdo.InstanceCallbacks other instances on changes to state. The persistent instance might be in a list of managed instances ... , and the persistent instance should be removed from the list of managed instances. To implement this, the application programmer would implement jdoPostLoad to put itself into the list of managed instances | |
JDOHelper.getObjectId(pc) - JDO Static Method of PersistenceCapable classes have a JDO identity managed by the PersistenceManager . This method returns a copy ... instance with the same data store identity. If the JDO identity is managed by the application ... the PersistenceCapable class. If the JDO identity is not managed by the application or the data store |