Home » Search

About OneToMany

91-100 of 150Refresh
Forum
1

@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed

Hello. I have a class Thing that contains OneToMany list of classes Photo. Photo contains  @Lob @Basic(fetch = FetchType.LAZY) private byte[] content; And after some queries with Thing (but without loading content of the photos) I get java.lang.OutOfMemoryError: Java heap space (the server
Issue
1

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

) { this.id = id; } @OneToMany(cascade=javax.persistence.CascadeType.ALL,fetch
Forum
1

_PersistenceException: Type is not found on getSingleResult.

;     @ManyToOne     private Municipio lugarNacimiento;         @OneToMany(mappedBy = "estudiante
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