Internal Website Search

51-100 of 166 results

GWT RPC is throwing serialization exception when I have object db date value

performs this replacement operation also on detachment (rebuild and enhance your classes again to use this). So you can use now detached entity objects . Maybe you may even use detached entity objects ... Have you tried detaching entities before serializing them using GWT? objectdb.java.util.LinkedList is replaced

A lot of ENT and SIV instances which are not cleared by GC

. Are you using enhanced classes? Are you using  "objectdb.temp.no- detach " ? Try to find the roots ... Yes, I use no- detach option. So how can I fix it? Remove no- detach ? But it has negative effects too. Vladiator Vlad Myachikov With "objectdb.temp.no- detach " enabled, clear() is silently ignored

Optimistic locking: prevent version increment on entity collection attribute

is detached between the calls, check this issue and the no- detach solution. I have tried to clear ... . Actually clear detaches managed objects and could make things harder in this case. I have tried ... that transaction could be detached when I try to access the collection with the same EntityManager in the same

@OneToMany(fetch = FetchType.LAZY) list is always null

are detached and lazy relationships cannot be used, if not already loaded before when the  ... above. support Support OK, I'll try setting objectdb.temp.no- detach . Vladiator Vlad Myachikov Thank you! It works ... ? If it is related to the no- detach option then the same test case should work differently, depending

Possible cause for "Enhancement of type ... is old and cannot be used"

model) when I was using the experimental mode 'objectdb.temp.no- detach '. It was completely ... ), and only when I had 'objectdb.temp.no- detach ' true. When I had 'objectdb.temp.no- detach ... web app (too large to provide here) I however definitely have 'objectdb.temp.no- detach ' false and I

JDOHelper.isDetached failure ?

detached = pm.detachCopy(first); System.out.println(JDOHelper.isDetached( detached )); pmf.close(); } With this as the persistent class: @PersistenceCapable( detachable ="true") public class TestClass ... cannot tell the difference between a detached object and a transient object, so any detached object

JOD problems regarding detachCopy()

-creating a detached copy 4-closing the connection 5-modifying the detached copy 6-re-opening the connection 7-saving the detached copy I get an "Attempt to reuse an existing primary key value" error. I ... merging detached objects is that JPA has a dedicated method,  merg e(obj), where JDO uses

Is there any restriction when using fetch=FetchType.LAZY ?

;@PreUpdate).  The referencedObj is becoming null is after executing the following line: em. detach ... ). On detach some unloaded fields (inverse / mapped-by relationships) are nullified by ObjectDB to signal that they have not been loaded yet, as detached objects cannot handle automatic loading

Extra uninitialised entities spawned on merge()

;    root = em.find(Element.class, id); //now detached , since outside transaction   ... 'root', persist it, load 'root' again with find() outside a transaction as a detached entity ... it, load 'root' again with find() outside a transaction as a detached entity, then create an Example 'e

Puzzler: Not getting cascades on read from Spring context

;   -dh dhosek Don Hosek Fetching doesn't work by default for detached objects. Please read see this issue  and as a workaround you may try setting objectdb.temp.no- detach . support Support ... objects? -dh dhosek Don Hosek It would be better and more efficient, if possible, to arrange fetching of the relevant data before detachment . support Support

Cascading makeTransient

Gergely Jakab Build 2.6.3 adds an option to treat embedded objects on detachment (eventually ... .temp. detach -embeddable", "true"); Then embedded objects are expected to be disconnected when owner entity objects are detached (made transient). support Support The situation has been improved

List of Enum Values in an entity

. Guest 's toString is invoked in this tutorial on detached Guest instances, and in detached objects only fields that have been loaded before detachment (e.g. defined as eager rather than lazy, or

UserException - Object User#2 belongs to another EntityManager

detaching User entity after query in #findUserById(Long id), but this shouldn't happen, at least in ... should be detached automatically (unless specified otherwise ), so probably that EntityManager ... objects of different entity managers as soon as possible. Accordingly, detaching the object before

EntityManager.remove(entity) - JPA Method

JPA Method in javax.persistence.EntityManager void remove (   Object entity ) Remove the entity instance. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException - if invoked

EntityManager.clear() - JPA Method

JPA Method in javax.persistence.EntityManager void clear () Clear the persistence context, causing all managed entities to become detached . Changes made to entities that have not been flushed to the database will not be persisted. Since: JPA 1.0

EntityManager.lock(entity,lockMode,properties) - JPA Method

: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException

EntityManager.lock(entity,lockMode) - JPA Method

: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException

javax.persistence.ConstructorResult

of the constructor. Any entities returned as constructor results will be in either the new or detached state

EntityManager.getReference(entityClass,primaryKey) - JPA Method

that the instance state will be available upon detachment , unless it was accessed by the application

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

/retrieve EITHER: the transparent activation is failing AND/OR: entities are becoming detached . http://www.objectdb.com/java/jpa/persistence/ detach I can't find out how to test where an entity is detached ... this. webel Dr Darren Kelly My feeling (before running your application) is that indeed detachment

TYE NullPointerException

on an attempt to use a lazy collection that has not been loaded in a detached entity object. Build 2.3.1_03 ... empty - if it has not been loaded before detachment ). If an unexpected exception (e.g ... Support Thanks for that. Its interesting you mention the entity is detached though as that wasnt

spuriously objectdb objects have null references

is detached (e.g. when the EntityManager is closed), ObjectDB replaces lazy loaded collections that have not been loaded with null values. Detached objects cannot be refreshed. Does it happen ... are known as unloaded after detachment . This way you can easily tell the difference (after detachment

Tracking changes to new collections (in enhancement mode) after flush

, CascadeType. DETACH }) private ModelElementImpl element; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType. DETACH }) private HashMap mappingMap = new HashMap (1); (edited ... uid; @OneToOne (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType. DETACH }) private

ObjectDB 2.4.0

on detachment to null (rather than empty collections ). Fixed a critical bug in handling a very large number ... EntityManager conflict checks in NO DETACH mode . Fixed a bug in online backup of databases larger ... another issue in implementing fake entity detachment (feature request #326 ). Fixed a bug in

NullPointerException using with "refresh" method

. The NullPointerException indicates an unexpected state (the map seems to be detached , which is unexpected as the owner entity object is probably not detached ). It is unlikely that the exception is thrown ... type? What is the status of that object when it is refreshed (clean, dirty, detached , etc.)? Which maps

ObjectDB 2.6.4

Added memory only database mode. Added an option to cascade detachment to embedded objects . Added ... memory management in multi flush transactions. Extended detachment of embedded objects ... handling large objects with long primary keys as query results ( issue #1717 ). Fixed detachment

PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method

instances is as specified by the FetchPlan. Unlike detachCopy, the instances are not detached ; there is no detachment information in the instances. The instances to be made transient do not need to implement the javax.jdo.spi. Detachable interface. Parameters: pcs - the root instances to make transient

PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method

instances is as specified by the FetchPlan. Unlike detachCopy, the instances are not detached ; there is no detachment information in the instances. The instances to be made transient do not need to implement the javax.jdo.spi. Detachable interface. Parameters: pcs - the root instances to make transient

PersistenceManager.makeTransient(pc,useFetchPlan) - JDO Method

detachCopy, the instances are not detached ; there is no detachment information in the instances. The instances to be made transient do not need to implement the javax.jdo.spi. Detachable interface. Parameters

AttachLifecycleListener.preAttach(event) - JDO Method

; InstanceLifecycleEvent  event ) This method is called before a detached instance is attached, via the javax.jdo.PersistenceManager.makePersistent method. The source instance is the detached instance. This method is called before the corresponding AttachCallback.jdoPreAttach on the detached instance. Parameters: event - the attach event. Since: JDO 2.0

DetachLifecycleListener.postDetach(event) - JDO Method

.PersistenceManager.detachCopy after the detached copy is made. It is called after the method DetachCallback.jdoPreDetach is called on the detached instance. Parameters: event - the detach event. Since: JDO 2.0

DetachLifecycleListener.preDetach(event) - JDO Method

.detachCopy before the detached copy is made. It is called before the method DetachCallback.jdoPreDetach is called on the instance to be detached . Parameters: event - the detach event. Since: JDO 2.0

FetchPlan.setDetachmentOptions(options) - JDO Method

JDO Method in javax.jdo.FetchPlan FetchPlan setDetachmentOptions (   int options ) Set options to be used during detachment . Options are DETACH _LOAD_FIELDS and DETACH _UNLOAD_FIELDS . Since: JDO 2.0

PersistenceCapable.jdoIsDetached() - JDO Method

JDO Method in javax.jdo.spi.PersistenceCapable boolean jdoIsDetached () Tests whether this object has been detached . Instances that have been detached return true. Transient instances return false. Return: true if this instance is detached . See Also: javax.jdo.JDOHelper.isDetached (Object pc) Since: JDO 2.0

javax.jdo.annotations.PersistenceCapable

2.1 String detachable default "" Whether this class or interface is detachable . Since: JDO 2.1

InstanceLifecycleEvent.getDetachedInstance() - JDO Method

JDO Method in javax.jdo.listener.InstanceLifecycleEvent Object getDetachedInstance () Returns the detached instance involved in the event. Return: The detached instance involved in the event, or null if there was none. See Also: "Section 12.15, Java Data Objects 2.0 Specification" Since: JDO 2.0

AttachLifecycleListener.postAttach(event) - JDO Method

JDO Method in javax.jdo.listener.AttachLifecycleListener void postAttach (    InstanceLifecycleEvent  event ) This method is called after a detached instance is attached ... instance in the cache; the target instance is the detached instance. This method is called

StateInterrogation.isDirty(pc) - JDO Method

made persistent in the current transaction, or modified while detached return Boolean.TRUE . Instances ... instance has been modified in the current transaction, or while detached . See Also: StateManager.makeDirty

javax.jdo.ObjectState

JDO Enum ObjectState java.lang.Object ∟  java.lang.Enum ∟  javax.jdo.ObjectState This class defines the object states for JDO instances. Since: JDO 1.0 Enum Constants DETACHED _CLEAN Since: JDO 1.0 DETACHED _DIRTY Since: JDO 1.0 HOLLOW_PERSISTENT_NONTRANSACTIONAL Since: JDO 1.0 PERSISTENT

InstanceLifecycleEvent.getTarget() - JDO Method

JDO Method in javax.jdo.listener.InstanceLifecycleEvent Object getTarget () The target object of the Event. Although not deprecated, it is recommended that the the methods getPersistentInstance() and getDetachedInstance() be used instead. Return: The detached instance for preDetach and postAttach

InstanceLifecycleEvent.getSource() - JDO Method

except preAttach, or the detached instance for a postDetach or preAttach callback

javax.jdo.JDODetachedFieldAccessException

is detached . Since: JDO 2.0 Public Constructors JDODetachedFieldAccessException () Constructs a new

PersistenceManager.makePersistentAll(pcs) - JDO Method

instance for detached parameter instances, in the same order as in the parameter array See Also: makePersistent (Object pc) Since: JDO 1.0

PersistenceManager.makePersistentAll(pcs) - JDO Method

the corresponding persistent instance for detached parameter instances, with an iteration in the same order as in

FetchPlan.getDetachmentRoots() - JDO Method

JDO Method in javax.jdo.FetchPlan Collection getDetachmentRoots () Get the roots for DetachAllOnCommit. Return: Collection of detachment roots. Since: JDO 2.0

FetchPlan.setDetachmentRoots(roots) - JDO Method

JDO Method in javax.jdo.FetchPlan FetchPlan setDetachmentRoots (   Collection roots ) Set the roots for DetachAllOnCommit. Parameters: roots - Collection of the detachment roots. Since: JDO 2.0

javax.jdo.listener.AttachCallback

() This method is called during the execution of javax.jdo.PersistenceManager.makePersistent on the detached instance before the copy is made. Since: JDO 2.0

AttachCallback.jdoPreAttach() - JDO Method

JDO Method in javax.jdo.listener.AttachCallback void jdoPreAttach () This method is called during the execution of javax.jdo.PersistenceManager.makePersistent on the detached instance before the copy is made. Since: JDO 2.0

FetchPlan.getDetachmentOptions() - JDO Method

JDO Method in javax.jdo.FetchPlan int getDetachmentOptions () Get options used during detachment . Since: JDO 2.0

FetchPlan.getDetachmentRootClasses() - JDO Method

JDO Method in javax.jdo.FetchPlan Class[] getDetachmentRootClasses () Get the root classes for DetachAllOnCommit. Return: The detachment root classes Since: JDO 2.0