ObjectDB ObjectDB

Internal Website Search

81-90 of 154 resultsRefresh
9

openejb jpa jaas module

.persistence.Persistence; import javax.persistence.TypedQuery; import javax.security.auth.Subject; import ... (); final int id = info.getId(); final TypedQuery<UserPrincipal> namedQuery = entityManager
9

Query all objects that implements a given interface - is that possible?

Hi, I am trying query one of my DB - for all object types that implement a given interface.     TypedQuery<Signal_Interface> query =         em.createQuery("SELECT bk FROM Signal_Interface bk ... .Signal_Interface EKK Emmanuel Keskes Try:     TypedQuery<Signal_Interface> query =         em
9

Failing in embedded mode, correct javax.persistance?

using TypedQuery. I have therefore tried "javax.persistence-2.2.0-release.jar". Then TypedQuery
9

java.lang.ClassCastException: CriteriaQueryImpl cannot be cast to java.util.List

a TypedQuery (or Query) instance from your CriteriaQuery and then execute the query using getResultList:     criteriaQuery.select(root);     TypedQuery<Person> query = em.createQuery(criteriaQuery
9

Updating Entities

newRate) { System.out.println("oldRate: " + oldRate + "\tnewRate: " + newRate); TypedQuery ... ); TypedQuery<Paygrade> modifyTo = Main.paygradeDB.createQuery("UPDATE Paygrade SET rate
9

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

();   }   // Retrieve all the Point objects from the database:   TypedQuery<Point> query = em.createQuery ... the database:   TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p",     Point.class);   List
9

Using the wrong class to access a database

.getSingleResult()); // 3 get all points TypedQuery<Point> query = em.createQuery("SELECT p FROM ... ) { TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p", Point.class); List<Point> results
9

Speed of queries that return many objects

();             TypedQuery<BenchEnt> query = em.createQuery("SELECT a FROM BenchEnt a", BenchEnt.class ... . If you can load the data lazily then the query can return results much faster:     TypedQuery<BenchEnt
9

Help with 'not like/lower' query

.TypedQuery; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria ... here   c.where(builder.like(builder.lower(path), stringProp));           TypedQuery<MyEntity> query
1

InternalException

back up the problem was gone....weird. If it helps this is the query that was causing it: TypedQuery<Object[]> q1 ... well: TypedQuery<Event> q1 = em.createQuery("SELECT e FROM Event e WHERE e.calendarId = :calendarId

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