About cascade

141-150 of 200Refresh
Forum
1

Beginners questions

=FetchType.LAZY,cascade=CascadeType.ALL, mappedBy="VERLAG_ID") private List users; Table
Forum
1

Bidirectional OneToMany is slow on updated items

dramatically, is to avoid using mapped by collections: @OneToMany(cascade = {CascadeType
Forum
1

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false) private B b; @Id @Column(length = 36) private String stringId
Issue
1

ClassCastException thrown when running count query

Units with a DELETE Query. Then i realized that the cascade option in the entity class is ignored
Forum
1

Connection is closed Caused by: java.io.EOFException

" level2="0" /> <cascade-persist always="auto" on-persist="false" on-commit="true" />
Forum
1

Database(*.odb) file size on disk

(cascade = CascadeType.ALL)   EntityB entityB = null; } @Entity public static class EntityB
Forum
1

Degrading performance overtime

="warning" /> <cascade
Forum
1

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have two classes: public class A { @ManyToOne B bClass } public class B { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List aClasses; } Now, I want
Forum
1

Different behavior with persist() and queried instances?

Hi, We have a simple class that by itself contains (among others) a property pointing to a collection: class Bla {     @OneToMany(cascade = CascadeType.ALL)     private List metaAttributes = new ArrayList(); } Now we do a simple em.persist(BlaInstance
Forum
1

Does ObjectDB support lazy loading?

@GeneratedValue Long id; @OneToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL) List list