ObjectDB ObjectDB

Internal Website Search

141-150 of 154 resultsRefresh
6

Is it possible get the All PrimKeys for a given entity class in the DB?

Hi, I would like to retrieve all the primKeys (user defined) by doing something like: TypedQuery<MyClassPrimKey> query = em.createQuery("SELECT mif.primkey FROM MyClass mif", MyClassPrimKey.class); The only alternative I can think of - would be to store the primkey on the object
6

Query perfromance problem

;   TypedQuery<Product> icQuery = null;   if (sortColumn == null) {    icQuery = em.createQuery
6

java.lang.ClassCastException in query results

I have a simple object stored in a ObjectDb file Stadium Name (java.lang.String) Capacity (int) City (java.lang.String) When i run the following code i get the ClassCastException in the "for (Stadium result : results)" line TypedQuery<Stadium> query = em.createQuery( "SELECT Name, Capacity
6

Accessing objects to make them available after EntityManager close?!

"); EntityManager em = emf.createEntityManager(); TypedQuery<Vifr_dic> query = em.createQuery("SELECT w
6

Empty query results after JAR creation

= emf.createEntityManager(); String s = "SELECT c FROM Case c"; TypedQuery<Case> q = em
6

How to creat a Query with Sql which returns a List<Mark> marks

(); TypedQuery<Mark> query = dbConnection.getEm().createQuery( "SELECT m FROM Athlete a, Mark m
6

Extra uninitialised entities spawned on merge()

();         em.merge(root);         em.getTransaction().commit();         TypedQuery<Element> query = em
6

JPA - ExceptionInInitializerError when creating EntityManager

.EntityManagerFactoryImpl@ffa7e1 EntityManager emTemp = emf.createEntityManager(); TypedQuery<EmailSettings
1

Schema-Update: Rename superclass and remove one subclass

error message. If we try to ecexute a Query (in the second main method): TypedQuery
1

ClassCastException in Tuple.get

(joinProvidingPerson, storedProvidingPerson) ); TypedQuery<Tuple> query = em.createQuery(cq); List

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