Home » Search

About OneToMany

121-130 of 144Refresh
Issue
1

new objects not available in mappedBy associations

Given a mappedBy association: e.g: @OneToMany(mappedBy="department") public List employees;   creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object
Forum
1

New to Product & Having An Issue

) { this.name = name; } @OneToMany(fetch=FetchType.LAZY) public Set
Forum
1

NullPointerException in ENH.g(ENH.java:401)

.entities.Entity.handleOrphans(Entity.java:170) This happens when I try to read a @OneToMany list
Forum
1

ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects

This issue maybe related to issue #110 (http://www.objectdb.com/database/issue/110). Because that issue has been closed as "fixed", I am reporting this new issue. This is my class definition: @Entity public abstract class Person {     @OneToMany(fetch=FetchType.EAGER, cascade=CascadeType
Forum
1

OEM licencing limitation

.Entity // enhanced entity public final class Test { // non enhanced entity Internal @OneToMany
Forum
1

openejb jpa jaas module

; @OneToOne private Settings settings; private String phoneNumber; @OneToMany
Forum
1

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ... @OneToMany(mappedBy="invoice", fetch=FetchType.EAGER,              orphanRemoval=true, cascade=CascadeType.ALL) private List invoiceItemList
Forum
1

Possible issue for JPQL IS EMPTY expression

bidirectional and not a field: @Entity class MyEntity { @OneToMany(mappedBy="myentity") ArrayList
Forum
1

Problem persisting a TreeSet field

Hello, I am getting a "java.lang.IllegalArgumentException: Can not set java.util.TreeSet field Message.children to java.util.HashSet" when persisting a Message object with a parent/children relationship: @ManyToOne private Message parent; @OneToMany(mappedBy = "parent") private TreeSet
Forum
1

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands a instance of the entity. Example code: @Entity @Table(name="Defects", schema = "myDB") public class Defects implements Serializable {     ...     ...     @OneToMany(mappedBy="defect