Home » Search

About mappedBy

31-40 of 80Refresh
Forum
3

Optimistic locking: prevent version increment on entity collection attribute

mappedBy relationship as follows. When testing this in JUnit (see test() method below) it all works fine ...     @Id private long id;        @OneToMany(mappedBy="document")     private ArrayList readings ... private long id = ID_SEQ++; @OneToMany(mappedBy="document") private ArrayList
Forum
3

Bidirectional OneToMany is slow on updated items

.ALL}, fetch = FetchType.LAZY/*, mappedBy = "person"*/) private Set
addressSet = new HashSet ... great.   But without the mappedby, there are to independent relations. One from Person to Address ... set a property to force objectdb to handle all mappedby as ordinary collections? Yes
Forum
3

Detaching objects after JOIN FETCH

the problem? While building test case I get two different cases: 1. When not using mappedBy, like in example above, detached objects are visible even after closing em. 2. When using mappedBy in class B (this is the case in my code), detached objects from relation are not visible. I should add mappedBy in
Forum
3

Version 2.2.7 build 7/8 issue

Hi all, I have problems with builds 7 and 8 when trying to sort entities with mappedBy ... with null objects! With builds 6 and 5 works it correctly. Removing mappedBy from @OneToOne(mappedBy ... ; @OneToOne(mappedBy = "address") private Customer customer; public Customer
Issue
2

NullPointer when accessing persistent field

=CascadeType.ALL, mappedBy="z_component") @MapKey(name="z_schemeName") private java.util.MapmappedBy = "a")         private ListmappedBy="z_aqera") @MapKey(name="z_registerId")     private java.util.Map
Forum
2

Error: Failed to write value of field X using reflection (oneToMany relation)

coche } @Entity public class Cliente extends Persona{ @OneToMany(mappedBy="Pedido ... . You have to change the value of the mappedBy attribute: @OneToMany(mappedBy="cliente") i.e. specify the field name on the owner side without the class name.  
Issue
2

com.objectdb.o.InternalException: null

PersistableObject {     @OneToOne(mappedBy = "spouse")     private Customer spouse = null;     private ... paymentPeriodicity = Payment.Periodicity.QUARTERLY;     @OneToMany(mappedBy = "customer", fetch = FetchType
Forum
2

Lazy loading does not work - crud takes long

= CascadeType.ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType.LAZY)     private List datapoint;         @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy
Forum
2

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

(mappedBy = "user") @MapKey     private Map assignements; } @Entity public class Project {     @Id     private String code;         @OneToMany(mappedBy = "project
Issue
2

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

= new ArrayList(); @OneToMany(mappedBy = "owner", cascade = CascadeType.ALL) public ... before detachment The easiest way is to set the fetch type to EAGER: @OneToMany(mappedBy = "owner