Home » Search

About OneToMany

61-70 of 143 Refresh
Forum
1

LEFT (OUTER) JOIN problem when mappedBy is defined

invoices without items! Only invoices with items. When I remove mappedBy from @ OneToMany annotation, LEFT ... (); } } @Entity public class Invoice { @ OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER
Forum
1

List of Enum Values in an entity

the problem is to change the fetch policy of the field from LAZY to EAGER:     private @ OneToMany(fetch ... is this just a ObjectDB specific case that the @ OneToMany works here? Thank you Flashbaer Eclipse is right
Forum
1

Merge with Parent/Child entities not possible

; import javax.persistence.MapKey; import javax.persistence. OneToMany; import javax.persistence ... public static class ParentEntity {   @Id   @GeneratedValue   private long id;   @ OneToMany(fetch
Forum
1

Object explorer cannot open odb file. ObjectDB many-to-many relationship

I created a data model to test many-to-many relationship with a link table as following (full code in attachement) @Entity public class User {     @Id     private String code;     @ OneToMany ... public class Project {     @Id     private String code;         @ OneToMany(mappedBy = "project
Forum
1

Performance and memory usage of queries

javax.persistence.FlushModeType; import javax.persistence. OneToMany; import javax.persistence ... {   @ OneToMany(cascade = CascadeType.ALL)   private List list = new ArrayList
Forum
1

problem with lazy loading - unittest project attached

hi, i'm still testing objectdb together with spring-data-jpa. i made a test which should simulate 4 requests 1. save entity 2. read an existing entity, add onetomany relation 3. read an existing entity, add another onetomany relation 4. read entity, get relations. i have the feeling this is not
Forum
1

Weird behaviour with enhanced classes and embedded entities

.FetchType; import javax.persistence.Id; import javax.persistence. OneToMany; import javax.persistence ... ;     @ OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)     private List
Issue
1

Weird issue with variable naming

javax.persistence. OneToMany; import javax.persistence.Persistence; import javax.persistence.Tuple ... final class MyEntity {   @ OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)   public Map
Forum
1

Persisting collection where members are subclasses

OK, I have a number of classes which are all subclasses of Entry (e.g., Folder, Link, Book). In the Folder class, there is a @ OneToMany Map children If I store something in that map ... Folder extends Entry {         String name;         @ OneToMany(cascade=CascadeType.PERSIST
Forum
1

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

serialVersionUID = 1L; @ManyToOne @Index private City city; @ OneToMany ... serialVersionUID = 33L; @ OneToMany(mappedBy = "city") private List persons