Home » Search

About long

101-110 of 200Refresh
Forum
2

JPQL keyword in entity - what to do?

name;     public Long all;     public ResultData(String prodType, Long ... the 2nd argument from Long to long. Works perfectly now. For last few hours I was playing with above query ... ResultData { public String name; public long all; public boolean done; public ResultData(String
Forum
2

Merge with Parent/Child entities not possible

public static class ParentEntity {   @Id   @GeneratedValue   private long id;   @OneToMany(fetch ... );   }   public long getId() {    return id;   }   public void setId(long id) {    this.id ... long id;   @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE
Forum
2

Query on Embedded Primary Key?

() {     }     public OBJ2(long field1, long field2) {         primkey = new Primkey2(field1, field2 ... ();     }             @Embeddable public static class Primkey2 implements Serializable {     public long field1;     public long field2;     public Primkey2() {     }     public Primkey2(long field1, long field2
Forum
2

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
2

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
Forum
2

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
2

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
2

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
2

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
2

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