Home » Search

About ManyToMany

31-40 of 45 Refresh
Forum
3

How to Remove records from many to many relationship tables in JPA

TransportationEvent { ... @ ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST) private ... Conclusion { .... @ ManyToMany( fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) private List ... _ORPHAN) and i applied that as @ ManyToMany(fetch = FetchType.EAGER, cascade = {CascadeType
Forum
3

Mysterious "Attempt to persist a reference to a non managed instance" error

javax.persistence. ManyToMany; import javax.persistence.OneToOne; import static javax.persistence ... =PERSIST) public Ostrich ostrich;     @ ManyToMany(cascade=ALL) public Map entries ... instance Sorry for the wrong answer: Here is the final sample:- Bus.class @ ManyToMany(cascade
Forum
3

EntityManager.refresh takes a long time

.ALL) private List operations = new ArrayList<>(); @ ManyToMany ... <>(); @ ManyToMany(mappedBy = "selectedPersons", cascade = CascadeType.REFRESH) @NotNull ... currentDialogAction; @ ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.REFRESH
Forum
2

Are indexes implicitly created for relationships?

Do the following annotations @OneToMany @ManyToOne @ ManyToMany @OneToOne imply @Index  ? Thanks, Carl   Actually these annotations (except @ ManyToMany) should apply @Unique on the @One side. But ObjectDB doesn't apply these indexes automatically, because of their overhead (which most users are not
Forum
2

Memory leak while merging parent with No Cascade annotation with children

.EntityManagerFactory; import javax.persistence.Id; import javax.persistence. ManyToMany; import ... MyEntity {         @Id         private String name;         @ ManyToMany(cascade
Forum
2

Problem with merging / persisitng objects with @Embeddable field

; @Embeddable public class ProductSet implements Serializable { @ ManyToMany(fetch = FetchType.EAGER ... extends BaseEntity implements Serializable, Convertable { @ ManyToMany(targetEntity = ProductSet
Forum
2

Merge Issue: Attempt to reuse an existing primary key value

object share the same child on a ManyToMany relationship with Cascade.ALL constraint. public final ...         private String name;         @ ManyToMany(cascade = {                 CascadeType
Forum
1

Example database world.odb

that describes the relationships OneToMany and ManyToMany? I want to see a working example
Issue
1

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

and to support ticket: @ ManyToMany relationship constraints/constrainedElements test fails on test case
Forum
1

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. No. There is no such configuration option, since having EAGER as the fetch type