About cascade

issue

Navigation through lazy loading from Detached Objects

A main limitation of detached objects (as explained on the Detached Entities manual page) is: ... str ;   @ OneToMany ( cascade = CascadeType . PERSIST ) ...

 
release

2.3.0

Release date: 2011-09-21 Download (5.32 MB) Binary:  objectdb-2.3.0.zip You should start by following a  tutorial or reading the manual ...

 
release

2.3.1

Release date: 2011-10-02 Download (5.48 MB) Binary:  objectdb-2.3.1.zip You should start by following a  tutorial or reading the manual ...

 
release

2.3.2

Release date: 2011-10-25 Download (5.48 MB) Binary:  objectdb-2.3.2.zip You should start by following a  tutorial or reading the manual ...

 
release

2.2.9

Release date: 2011-08-10 Download (5.15 MB) Binary:  objectdb-2.2.9.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

Query results are not up to date for entities, not primitives

When using the CriteriaBuilder to query, the retrieved list are not refreshed according to the latest updates. But, when using the JPQL Query, the list are refreshed. What is the problem? ... <persist serialization = "false" / > <cascade - persist always = "auto" on - persist = "false" ...

 
forum_thread

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

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'objectdb.java.util.Date' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = Sat Jan 29 00:00:00 PST 2011    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)  ... ( fetch = FetchType . EAGER , cascade = CascadeType . ALL ) private ...

 
forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: ... Foo { @ OneToMany ( cascade = CascadeType . PERSIST ) private ...

 
issue

ClassCastException thrown when running count query

Hello! Attached you find a full stacktrace. The query was: ... some Units with a DELETE Query. Then i realized that the cascade option in the entity class is ignored when doing DELETE. I then tried ...

 
issue

ArrayIndexOutOfBoundException

Hello, we got this exception when using ObjectDB: ... to another entity. These entities are not persist in cascade, but explicitly by calling persist. The problem dissapeared ... I am not sure wheather this annotation is allowed when not cascade persist is used? The exception occurs when trying to delete: ...