Home » Search

About ManyToOne

61-70 of 84Refresh
Forum
1

Foreign key constraint issue

    @GeneratedValue     private long id;     @ManyToOne(optional = false, cascade = {})     @JoinColumn(name
Forum
1

Global way to set Lazy-loading fetch functionality for all the fields

to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way to do it at objectdb level or JPA global
Forum
1

How to avoid NULL values on Embedded entities

origen;     @ManyToOne private Cliente cliente; //Opcional         @Basic(optional=false) private
Forum
1

Items in list are doubled, when the entity class is not enhanced

; @ManyToOne private Customer customer; ... getters and setters } public class JavaApplication
Forum
1

JPA vs JDO - which is more efficient for OneToMany queries?

") Vector orders; }   @Entity class Order { @ManyToOne Customer customer
Issue
1

JPQL support for mapped by (inverse) collections

@GeneratedValue long id;                 @ManyToOne         A a;            } } The query in
Forum
1

LEFT (OUTER) JOIN problem when mappedBy is defined

InvoiceItem{ @ManyToOne private Invoice invoice; InvoiceItem(Invoice i
Forum
1

List always null

I have the following classes: @Entity public class Noticia implements Serializable {     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToOne(targetEntity = Categoria.class)     private List
Forum
1

Maintaining referential integrity

an instance of Employee. I tried to use annotations like "OneToMany" and "ManyToOne", but the result
Forum
1

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

() + "}" + "[" + id + "]\"" + name + "\"";         }         @ManyToOne(fetch = FetchType.LAZY, cascade