Home » Search

About ManyToMany

41-46 of 46Refresh
Forum
1

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @Cascade(org.hibernate.annotations.CascadeType
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
Forum
1

Join query problem with new statetment

;     (...)     @ManyToMany(targetEntity = Product.class, fetch = FetchType.LAZY)     private List
Forum
1

Relationship Annatations

hi,   what is the purpose of annotating a field with a RDB relationship shuch as OneToMany. ManyToMany etc? Using these annotations is optional in ObjectDB but required by standard JPA. You still need these annotations in ObjectDB to specify cascading / fetch policy and other settings. sprintf
Forum
1

Speeding up reporting queries with size() on list

: @ManyToMany(targetEntity = Product.class, fetch = FetchType.LAZY) private List products
Issue
1

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

applies to both this issue and to support ticket: @ManyToMany relationship constraints