About long

111-120 of 200Refresh
Forum
1

Version 2.2.7 build 7/8 issue

Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id; @Basic(optional=false) private String name; @OneToOne ... { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id
Issue
1

When using inheritance, you can specify, which ID to use

class) should be used for new object. For example: public EntityA() {     @Id     long id;     String field1; }   public EntityB() extends EntityA() {     @Id     long id;     String field2 ... () { String field1;     public abstract long getID();     public abstract void setID(long id
Issue
1

Best practise loading big data

so there they are still referenced by weak refernces. GC can collect them but within this long transaction ... public long Id = 1; @OneToMany (cascade = CascadeType.ALL, targetEntity = MyStepBlock ... .getTransaction().commit(); sbc = null; long counter = 0; em.getTransaction().begin(); sbc = em.find
Forum
1

Field in Generic Class not persisted?

.SerializationUtils; @Entity public class OBJ6 extends ABS<Long, OBJ6>{      @Id @GeneratedValue long id;     private long valInInstanceClass;     public OBJ6() {     }     public OBJ6(Long l ... (Long.valueOf("2"));         H.print();         byte[] by = SerializationUtils.serialize(H
Forum
1

ID format in objectdb 2.x for JDOHelper.getObjectId

IDs where always unique long numbers, so these numbers could represent objects uniquely ... long id; // JPA code and then the ID will be injected automatically to your objects ... .objectdb.OID not LongIdentity. I tried adding private @Id @GeneratedValue long id; but i think
Forum
1

Inconsistent return types from JDO query

produced by the Query is inconsistent - sometimes Integer, sometimes Long.  Using setResultClass(Long ... , but should be long for both int and long fields. Please post the query and specify the relevant ... and for the test. It shows that the sum of a single result uses the type of the original value rather than long as
Forum
1

More Efficient Primary Keys

Primary Key  with two Longs b) Embedded Primary Key with two Longs c) Furthermore, as String ... improvement would bring a switch to a single long? Unfortunately it is impossible to evaluate the impact ... is negligible. String keys are slower than numeric keys, and a single long is more efficient (and better
Issue
1

New entity objects are duplicated on merge cascading

= GenerationType.AUTO)         private Long id;                 @OneToMany(cascade= CascadeType ... )         private Long id;     }        }     Fixing this bug may require totally new implementation of merge ... long id;         @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)         B b
Forum
1

Performance in large transactions

.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   // SLOW   long startTime ... ();   // SLOW   long startTime = System.currentTimeMillis();   MyEntity myEntity = new MyEntity ... persistence context after first persistence for a long time. We will try to demonstrate these ideas in
Forum
1

Performance in SELECT statement

{     @Id     @GeneratedValue     private Long key;     private Long clientKey;     private ...     private long timestamp;     @Embedded     private State state;     ... getter/setters ... } @Embeddable public class State {     private Long lastProcessingDate;     private int