About long

101-110 of 200Refresh
Issue
1

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

implements Serializable { private long beginTime; private long endTime; private String periodType; public long getBeginTime() { return beginTime; } public void setBeginTime(long beginTime) { this.beginTime = beginTime; } public long
Forum
1

Bulk Delete and Update - best practice?

(); em.clear(); TypedQuery<Long> q = em.createQuery("SELECT COUNT(d) from CacheData d", Long.class); long rows = q.getSingleResult(); System.out.println(String.format("Found %s rows", rows ... .createEntityManager(); q = em.createQuery("SELECT COUNT(d) from CacheData d", Long.class); rows = q
Forum
1

Can a Set<E> be a foreign key?

a variable (private Set<Long> cellHeldCharacters;) which holds the IDs of the characters within the cell ... {     @Id @GeneratedValue     private long characterId;     private String characterName ...     private long cellID;     private String cellName;     private String cellShortDesc;     private
Forum
1

Criteria query error: Unexpected query token

{ /** * */ private static final long serialVersionUID = 613965399994067819L; public ... class BaseEntity implements Serializable{ private static final long serialVersionUID ... ) @GeneratedValue private Long id; /** * Version of object, supporting optimistic
Forum
1

Duplicate Entity class names causes Exception in Query

; } } public long howManyItemsExist(EntityManager em) { TypedQuery<Long> q = em.createNamedQuery("objdbTest.Singleton.count", Long.class); q.setFlushMode(FlushModeType.AUTO); try { return q ... static final long serialVersionUID = 2215109025397291357L; } If I change the query
Forum
1

failure to enforce NOT NULL for java.lang.String

=GenerationType.IDENTITY) private Long id; @Unique @Persistent(nullValue=NullValue.EXCEPTION) private String username; public Long getId() { return id; } public void setId(Long id) { this.id ... )         private Long id;         @Unique         //@Persistent(nullValue=NullValue.EXCEPTION
Issue
1

InternalException when using MEMBER OF on a large list in a query

with long primary keys. In such objects the keys may not be embedded in the object content ... objects with long primary keys is not very efficient, because non embeddable keys are slower ... for the fix. Also thanks for the hint with long keys. Can you give us a recommendation as
Forum
1

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
1

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
1

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