Home » Search

About long

121-130 of 200Refresh
Forum
1

Error 613 - i cant put a list<Athlete> into a Squad object

{     /**      *      */     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue     private long id;     private int squadId;     private int athletId;     public long getId() {         return id;     }     public void setId(long id) {         this.id = id;     }     private String
Forum
1

Extra uninitialised entities spawned on merge()

, "root");         em.persist(root);         em.getTransaction().commit();         Long id = root ... + ")";         }         private Long id;         @Id         @GeneratedValue         public Long getId() {             return id;         }         public void setId(Long id
Forum
1

How to use JOIN FETCH?

@GeneratedValue private long id;   private String name;   @OneToMany   @MapKeyTemporal(TemporalType.DATE)   private Map addressHistory = new HashMap();   public long getId ... ;   } } @Entity public static class Address {   @Id @GeneratedValue private long id;   private String
Forum
1

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

implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id; @OneToMany(mappedBy = "customer",fetch= FetchType.EAGER ... final long serialVersionUID = 1L; @Id @GeneratedValue private Long id
Forum
1

List always null

{     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToOne(targetEntity = Categoria.class)     private List ... static final long serialVersionUID = 1L;         @Id     @GeneratedValue(strategy
Forum
1

List of Enum Values in an entity

Serializable { private static final long  serialVersionUID = 1L; @Id @GeneratedValue Long ... ();                 em = emf.createEntityManager();         Long id = entity.id;         entity = em.find ... ();     }     @Entity     public static class MyEntity {         @Id @GeneratedValue Long id
Forum
1

Mapped By Fetch is very Slow

();   Long start = new Date().getTime();     TypedQuery query = em.createQuery("SELECT m FROM ... .setMaxResults(10000).getResultList();   Long end = new Date().getTime();   Long duration = (end ... better understand the inverse query. Why it was so long in objectdb ? Also, i have an another question
Forum
1

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

This however has the consequence of a long conversation until the stateful bean is released. 3. Use ... to traverse the LAZY relationship from the EntityManagerFactory and will able able to use it as long as ... after they are detached as long as the context is still avalable, which is what you are encountering. As long
Forum
1

Relationships and tracking changes

static final long serialVersionUID = 1L; @Id @Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY,cascade=CascadeType ... EBUser extends Pojo implements Serializable{ private static final long serialVersionUID = 1L; @Id
Forum
1

can't get HashMap out of the database

public class Guest implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private ... GuestHolder { // Persistent Fields: @Id @GeneratedValue Long id; @OneToMany(fetch