About long

101-110 of 200Refresh
Forum
2

Join query problem with new statetment

{     private static final long serialVersionUID = 1L;     private long inspID;     private String inspName;     private long productID;     private String productName;     public InspirationsPerSupplierResult(             long inspId, String inspName, long productId, String productName
Forum
2

Object as parameter results in exception

owningCompany; } @Entity() public class Company{    .    .    .     @Id    private Long id; } and the query:    @Override public T fetch(Company company, Long primaryKey ... public T fetch(Company company, Long primaryKey) {   mLogger.info("Fetching type: {} with id
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