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
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
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

A bidirectional OneToOne association with a shared primary key

) would not include a mappedBy attribute ? Thanks No annotations are required by ObjectDB (you may use @OneToOne annotations with no mappedBy): @Entity public class Entity1 {     Entity2 e2
Issue
2

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

, CascadeType.PERSIST}, mappedBy="account", fetch = FetchType.LAZY) @JoinColumn(name = "project_id", unique ... ={CascadeType.MERGE, CascadeType.PERSIST},             mappedBy="account", fetch = FetchType.LAZY
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

joining of tables

() { return address; } in Address class: @ManyToMany(mappedBy = "address") public Set ... back from Address to Employee with a mappedBy setting. You can use either a to-one reference (Address