Home » Search

About ManyToOne

31-40 of 85Refresh
Forum
2

find() cost unreasonable time!

    @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne @JoinColumn(name ... .persistence.ManyToOne; import javax.persistence.OneToMany; @Entity @Inheritance(strategy ... .IDENTITY) private int id; @ManyToOne @JoinColumn(name="parent") protected Nodes parent
Forum
2

@JoinColumn(nullable=false)

? This is an code example: //bi-directional many-to-one association to AlarmGroup @ManyToOne @JoinColumn ... of the @ManyToOne and @OneToOne annotations. Similarly, see this forum thread regarding setting a unique constraint when using ObjectDB. bugsbunny2003
Forum
2

Adding multi part path index on non-embedable object member

{ @MapsId @ManyToOne(fetch = FetchType.LAZY) private Merchant merchant; @MapsId @ManyToOne(fetch = FetchType.LAZY) private List stores; // Setter/Getter
Issue
2

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

; } @Override public void setId(Long id) { this.id = id; } @ManyToOne ...     public static class Project {         @Id         protected Long id = 1L;         @ManyToOne
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

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List ownedElements, and Example is a subclass entity ... ) {             this.id = id;         }         private Element owner;         @ManyToOne()         public
Forum
2

Is it possible to remove parent/child entities without refresh?

.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence ... {   @Id   @GeneratedValue   private long id;   @ManyToOne(fetch = FetchType.LAZY, cascade
Forum
2

Merge Issue: Attempt to reuse an existing primary key value

.util.*; import javax.persistence.ManyToOne; public class T1432y {     @Test     public ... {         @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.ALL })         private A parent
Forum
2

Merge with Parent/Child entities not possible

javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne ... long id;   @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE
Issue
2

New entity objects are duplicated on merge cascading

;         @ManyToOne(fetch= FetchType.LAZY)         A owner;                 @OneToOne(fetch = FetchType.LAZY ... {         @Id @GeneratedValue long id;         @ManyToOne(fetch= FetchType.LAZY)         B owner;     } } This issue is fixed now in build 2.3.7_18. natmaclin