ObjectDB ObjectDB

Internal Website Search

41-50 of 138 resultsRefresh
13

Query Method NullPointerException on List iteration

categoryName Expected query outcome: SupplierName Category1_Count Category2_Count Supplier1 5 13 ... Code: public int countCategory(String categoryName) { int count = 0; for (Product p : products) { if (p.getCategory().getCategoryName().equals(categoryName)) { count
13

IN expression in a Criteria Query

: SELECT a FROM Account a GROUP BY a.code HAVING COUNT(a) < 2 It throws following exception: com ... Account a GROUP BY a.code HAVING COUNT(a) < 2 This is an invalid query. In a grouping query ... value combination). Aggregate calculations (count, sum, avg, max, min) that are carried
11

Error using query with MAX() function

% 60% 70% 80% 90% 100% Global Value Errors ------------------- [1] Unexpected total object count ... .entities.Notes - Unexpected object count: 59999 (actual 59971) Page Relation Errors ... if( (count % config.getUpdateFreq()) == 0) { em.getTransaction().commit
11

Insertion Speed Rate and Batch Load

em = emf.createEntityManager();                 int count = 1000000;         long startTime = System.currentTimeMillis();         em.getTransaction().begin();         for (int i = 1; i <= count ... = System.currentTimeMillis() - startTime;         long rate = count / time * 1000;         System.out.println
11

Exception on creation when running multithreaded

running a count query and it returns 800 as expected, then I run the following query "select $1 ... do a count on Organisations and get 800 and then I do "select $1 from Organisation $1" and get the 803 ... getting back 0 objects, even though the count before it shows there are 800 objects and then the second
11

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

Guest count: " + guests.size() );   return guests;     } } I get an exception when I want to use ... .persist produces the ouput : 18:51:13,454 INFO  [stdout] (http--127.0.0.1-8080-1) persisted Guest count ...   [stdout] (http--127.0.0.1-8080-1) persisted Guest count: 1 but immediately after getAllGuests
11

Visibility of changes in Transaction is not visible to a JPA QL Query

go to count them; TypedQuery<Long> q = em.createQuery("SELECT COUNT(x) FROM Item x", Long.class ... (EntityManager em) {   TypedQuery<Long> q = em.createQuery("SELECT COUNT(x) FROM Item x", Long.class ... You are right! I was doing a count with the flush mode auto on... If I don't I can't see any
2

"is not null" queries not working with index

entities. A null value is assigned to an indexed field for every second entity. When doing count ... .createQuery("SELECT COUNT(p) FROM Foo p").getSingleResult());         System.out.println("null    : " + em.createQuery("SELECT COUNT(p) FROM Foo p WHERE p.bar IS NULL").getSingleResult
2

Doctor bug?

- Unexpected object count: 1 (actual 0) [2] net.pocketservices.athene.objects.persistent.HotUser - Unexpected object count: 1 (actual 0) [3] net.pocketservices.athene.objects.persistent.Person - Unexpected object count: 2 (actual 0) [4] net.pocketservices.athene.objects.persistent.ReadPointer
2

Corrupt database page

------------------ [1] com.btc.ep.base.bl.internal.dmos.message.MessageImpl - Unexpected object count: 350093 (actual 350090) Page Content Errors ------------------- [1] Page #11436 entry 0 has unexpected field count ... has unexpected field count (44 instead of 6) com.btc.ep.base.bl.internal.dmos.message.MessageImpl(375

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support