Home » Search

About OneToMany

121-130 of 149Refresh
Forum
1

Multiple joins did not return expected result

Hello, I have 3 entity classes: Event - String title Calendar - List @OneToMany SharedCalendar extends Calendar - Calendar original Now I want to retrieve all events from a specific calendar by its id like: SELECT event FROM Calendar c1, SharedCalendar c2 INNER JOIN c1
Issue
1

Navigation through lazy loading from Detached Objects

{         @Id int id;         String str;                 @OneToMany(cascade=CascadeType.PERSIST
Issue
1

New entity objects are duplicated on merge cascading

= GenerationType.AUTO)         private Long id;                 @OneToMany(cascade= CascadeType
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