ObjectDB ObjectDB

Internal Website Search

51-60 of 200 resultsRefresh
116

java.lang.ClassCastException in query results

result : results)" line TypedQuery<Stadium> query = em.createQuery( "SELECT Name, Capacity, City FROM Stadium s", Stadium.class); List<Stadium> results = query.getResultList(); for (Stadium result : results) { System.out.println("Name: " + result.Name + ", Capacity: " + result
115

wrong query result

Hi we have a problem with queries, database is returning wrong results. These are the queries we run from ObjectDB explorer. Query 1 - SELECT MAX(e.generisaniID) FROM AktImpl e – returns string (from ... are a db repair log and a screenshot of queries and results. We will upload the DB through private
115

Criteria Query results in a NoResultException instead of returning object

._NoResultException: No matching results for a unique query at org.jboss.seam.security.IdentityImpl ... by: com.objectdb.o._NoResultException: No matching results for a unique query at com.objectdb.o.JPE ... (criteria).getSingleResult(); which evaluates to the query: SELECT $1 FROM IdentityObject $1
115

Query with FETCH JOIN returns multiple results instead of one.

with two services, it's returned twice (both results contain the same instance). I believe that such query ... on the right-hand side of the join operation are not returned in the query result or ... ") .setParameter("demand", demand).getResultList(); I want this query to find one and only Demand object
114

@ElementCollection query returning extra result per element in collection

. The issue is that, I'm getting repeated results of the owning entity of an '@ElementCollection ... ) AND (($1.conditionOne=:p2))) Got: 1 results - correct ... .conditionOne=:p3)))) Only expected one result, but got: 2 Again, this is only an engineered test
23

Query execution creates a wrong result

Hello, we analysed an unexpected behavior and find out that the result of an Query are wrong ... returns an expected result (one Entity). The second Query is the first Query with an additional ... with Version 2.6.6. But we report the BUG, because a wrong Query result is very very Critical
2

setRange(fromInclToExcl)

Method javax.jdo.Query void setRange( String fromInclToExcl ) Set the range of results to return ... , :to");. The execution of the query is modified to return only a subset of results. If the filter would normally return 100 instances, and fromIncl is set to 50, and toExcl is set to 70, then the first 50 results
2

setRange(fromIncl, toExcl)

Method javax.jdo.Query void setRange( long fromIncl, long toExcl ) Set the range of results to return. The execution of the query is modified to return only a subset of results. If the filter ... and the remaining 30 results are ignored. An implementation should execute the query such that the range algorithm
2

closeAll()

Method javax.jdo.Query void closeAll() Close all query results associated with this Query instance, and release all resources associated with them. The query results might have iterators open on them. Iterators associated with the query results are invalidated: they return false to hasNext() and throw NoSuchElementException to next(). Since: JDO 1.0
2

close(queryResult)

Method javax.jdo.Query void close( Object queryResult ) Close a query result and release any ... on it. Iterators associated with the query result are invalidated: they return false to hasNext() and throw NoSuchElementException to next(). Parameters: queryResult - the result of execute(...) on this Query instance. Since: JDO 1.0

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