About OneToOne

31-40 of 61Refresh
Forum
2

Mapped By Fetch is very Slow

again :( ). Here is the test case : 1- Create 100 000 entities with for each 1 entity with @OneToOne(mappedBy ... .persistence.Id; import javax.persistence.OneToOne; @Entity public class MyEntity { @Id private ... MyEntityChild entityChild = null;   @OneToOne(targetEntity = MyEntityChild.class, cascade = CascadeType
Issue
2

NullPointerException when using multithreading

; @OneToOne(cascade=CascadeType.ALL) private HashMap myMap; } @Embeddable public class EmbeddableA { @OneToOne(cascade=CascadeType.ALL) private HashMap myMap; } @Embeddable public class EmbeddableB { @OneToOne
Forum
2

Pre-detach loading: retrieval by navigation not working in if statement

BooleanValue entity. This is @OneToOne with explicit LAZY fetch. - A BooleanValue entity wraps ... wrapper FloatQuantity entity. This is @OneToOne with explicit LAZY fetch. - A FloatQuantity entity ... it, which one can confirm with javap -c bytecode inspection. The @OneToOne entity variable 'present' of a Block entity
Forum
2

Version 2.2.7 build 7/8 issue

with null objects! With builds 6 and 5 works it correctly. Removing mappedBy from @OneToOne(mappedBy ... private Long id; @Basic(optional=false) private String name; @OneToOne ... ; @OneToOne(mappedBy = "address") private Customer customer; public Customer
Issue
2

ClassCastException after upgrade to 2.3.5_03

{ @Id String id; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType.EAGER) private Object payload; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType
Forum
2

Composite indexes

? @OneToOne, @ManyToOne? I don't want to start with complex example, so maybe I'll try to explain ... also on relations? @OneToOne, @ManyToOne? Yes. They are useful when the query includes navigation between entities (directly or using JOIN).   kborkowski
Forum
2

Database(*.odb) file size on disk

; import javax.persistence.Id; import javax.persistence.OneToOne; import javax.persistence ... ++;   }   @Id   int id;   @Basic   Integer value;   @Basic   String strValue;   @OneToOne
Forum
2

Extra uninitialised entities spawned on merge()

with a relationship @OneToOne Element child. package test; import java.util.*; import javax.persistence ... ");             addOwnedElement(child);         }         private Element child;         @OneToOne
Forum
2

Mysterious "Attempt to persist a reference to a non managed instance" error

javax.persistence.ManyToMany; import javax.persistence.OneToOne; import static javax.persistence ... implements Serializable {     @Id @GeneratedValue private long id;     @OneToOne(fetch=EAGER, cascade
Issue
2

New entity objects are duplicated on merge cascading

long id;         @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)         B b ... ;         @ManyToOne(fetch= FetchType.LAZY)         A owner;                 @OneToOne(fetch = FetchType.LAZY