About long

91-100 of 200Refresh
Forum
2

Internal exception when updating date filed (TemporalType.DATE)

initDatabase() {             long personsCount = getPersonsCount();             if (personsCount == 0 ... ();         }         private void createPersons(long count) {             try ... ());             return person;         }         private long getPersonsCount() {             try
Forum
2

Problem of query With an aggregate function

) from table If yes I have this methode that return a list of Long: public List<Long ... (); List<Long> listSommeLong = new ArrayList<Long>(); for (BigDecimal[] bigDecimals : listRes ... that Object can't cast to Big decimal  and my query always retuen a list of Long like
Forum
2

Should derived fields of an EmbeddedId be manually maintained by app code?

; } int endCnt = lastInstanceInMap + numberToGen; int startCnt = lastInstanceInMap; long ... .setParameter("container", this); q.setFlushMode(FlushModeType.AUTO); try { long l = (Long) q ... public static class ECompoundKeyMapItemId implements Serializable { private static final long
Forum
2

Unable to persist fields in subclass

(AccessType.PROPERTY) public abstract class SimpleAbstractPersonTest { private long addressID; private long contactID; // Use Properties to allow integration with JavaFX ... StringProperty lastNameProperty() { return lastName; } public final long getAddressID
Forum
2

EmbeddedId with Generated field value

********* @Entity @IdClass(CompositePK.class) public class A {     @Id private long uid;     @Id private String zone; } public class CompositePK {     private long uid;     private String zone ... ; } @Embeddable public class CompositePK {     private long uid;     private String zone; } In
Forum
2

500Mb ObjectDb database opening issue

) for following code long time = System.currentTimeMillis(); m_EntityMgrFactory = Persistence ... any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database ... which show problem with long data base open operation issue. Could you check from ObjectDb
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