Home » Search

About OneToMany

91-100 of 144Refresh
Forum
1

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
Issue
1

ArrayIndexOutOfBoundsException on flush

a HashMap object within the parent entity: @OneToMany(orphanRemoval=true, cascade=CascadeType
Forum
1

Attempt to remove a detached entity object (error 613)

... ? In my opinion, one child ( a list ) with OneToMany and orphanRemoval has been modified
Forum
1

Beginners questions

@Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch
Forum
1

collection of embedded objects

you will have to annotate the embedded collection with @OneToMany to cascade operations through the collection
Issue
1

com.objectdb.o.InternalException: null

paymentPeriodicity = Payment.Periodicity.QUARTERLY;     @OneToMany(mappedBy = "customer", fetch = FetchType
Forum
1

Database Inconsistency or corruption

;   @javax.persistence.OneToMany(cascade=javax.persistence.CascadeType.ALL, fetch =   javax
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

Double persist of Entity field with Cascade.ALL

bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch= FetchType.EAGER) private List