Home » Search

About long

121-130 of 200 Refresh
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

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

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

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

createQuery method error

isJobExist(String name) { TypedQuery< Long> query = em.createQuery( "SELECT count(j) FROM MFJob j WHERE j.jobName = :name", Long.class); return query.setParameter("name", name ... .EntityManager cannot be applied to (java.lang.String,java.lang.Class Long>) [javac
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

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

Does ObjectDB support lazy loading?

.getTransaction().commit(); Long id = a.id; em.close(); em = emf ... @GeneratedValue Long id; @OneToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL) List list; } @Entity static class B { @Id @GeneratedValue public Long id; int
Forum
1

Entity with java.util.Date column gives ClassCastException in BIRT

)     private long id;     private String name;     private boolean privacy;     @Column(name ...     }     /**      * Returns the id of this {@link Patient}      * @return the id      */     public long getId ... id the id to set      */     public void setId( long id) {         this.id = id
Forum
1

EntityManager refresh problem

.persistence.Id; @Entity public class SimpleEntity {     @Id @GeneratedValue private Long ... (int fieldB) {         this.fieldB = fieldB;     }     public Long getPrimaryKey() {         return primaryKey;     }     public void setPrimaryKey( Long primaryKey