ObjectDB ObjectDB

Internal Website Search

81-90 of 186 resultsRefresh
15

Help with JPA2 Criteria and conditional operator grouping

= builder.createQuery(Company.class);   Root<Company> root = c.from(Company.class);   ParameterExpression<String> nameParam = builder.parameter(String.class);   Path<String> namePath = root.get("companyId");   Path<Boolean> conditionOnePath = root.get("conditionOne");   Path<Boolean
15

Problem witch CriteriaBuilder isMember(..)

and hash methods in Testclass are implemented). My problem is, that CriteriaBuilder cb = ... Root<Container> root = ... Testclass searchobject = new Testclass(1,2); Predicate predicate = cb.isMember(searchobject,root.<Collection<Testclass>>get("testlist1")); doesn't work, while String searchobject
14

Database is erased after deploying a new web application version

. support Support Thanks for the quick reply. I've moved the file to my root directory (and opened ... the full exception error message and stack trace. Failed to open file '/root/evee-database.odb' at com.webapp ... " command. Now I see it only when running the "fuser" command as follows: [root@vmedu158 ~]# ps PID TTY
14

Soft Reference Object Cache Recommendation

[] that is not released and you expect to be released? Can you see a path of strong references from a root ... root objects somewhere. (I also had my program create a 1 GB softly referenced byte ... root" results with a VisualVM message box indicating "No GC root found", i.e. it is not hold by
14

ObjectDB CRUD Examples

= criteriaBuilder.createQuery(Foo.class); Root<Foo> root = criteriaQuery.from(Foo.class); List<Foo> allFoo = (List<Foo>) criteriaQuery.select(root); em.getTransaction ... .class); Root<Foo> root = criteriaQuery.from(Foo.class); List<Foo> allFoo = (List
14

"Unexpected query expression" using CriteriaQuery FetchParent Interface

Using the fetch over Root attribute, the exception is: com.objectdb.o._PersistenceException: Unexpected query expression end (non keyword identifier is expected)] with root cause com.objectdb.o ... <Person> criteriaQuery = cb.createQuery(Person.class);   Root<Person> root = criteriaQuery.from
14

OutOfMemoryError on search after update on DB created with DB Doctor

and SystemDB.odb.rpmnew is the recovered DB file generated by DB Doctor: [root@localhost totalrecall ... 1339 Feb 19 16:35 objectdb.conf -rw-r--r-- 1 root root 1073741824 Mar 11 12:40 SystemDB.odb -rw-r--r-- 1 root root 214695936 Mar 9 15:16 SystemDB.odb.rpmnew [root
14

Help with 'not like/lower' query

): ParameterExpression<String> stringProp = criteriaBuilder.parameter(String.class); Path<String> path = root ... .criteria.Path; import javax.persistence.criteria.Root; public final class ObjectDBTest ... );   ParameterExpression<String> stringProp = builder.parameter(String.class);   Root<MyEntity> root = c.from
14

CriteriaQuery using isNotNull with other conditions results in InternalException

); Root root = criteria.from(relationshipClass); criteria.select(root); List<Predicate> predicates = new ArrayList<Predicate>(); predicates.add(builder.equal(root.get("to"), identityObject)); predicates.add(builder.equal(root.get("relationshipType
2

ClassCastException in Tuple.get

(); CriteriaQuery<Tuple> cq = cb.createTupleQuery(); Root<DemandAnswer> rootDemandAnswer = cq ... .get chokes on Join, Root and probably other TupleElements that are not a Path - am I right? hobson ... would like to leave as a tuple query, so I replaced calls to Tuple.get(root) and Tuple.get(join) with Tuple

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