ObjectDB ObjectDB

Internal Website Search

71-80 of 126 resultsRefresh
18

Object as parameter results in exception

Hi, I've got a simple JPA2 Criteria query which fails when doing an object equality. I verified ... .createQuery(managedClass);   Root<T> p = c.from(managedClass);   c.select(p);   c.where(     qb.equal(p.get("id"), primaryKey),     qb.and(qb.equal(p.get("owningCompany"), company)));   TypedQuery<T> q
17

CriteriaQuery .where() for multiple conditions

.equal(root.get("name"), name)); criteriaQuery.where(criteriaBuilder.equal(root.get("surname ... where name is equal to the given name OR surname is equal to the given surname. Is it possible to make ... criteria = criteriaBuilder.and(criteriaBuilder.equal(root.get("name"), name), criteriaBuilder.equal(root
15

EntityManager JPA or JDO impl and different behavior

. That has indeed fixed that issue. However there appear to be two more. First, as we are dealing with maps, the "equals ... . So if the "equals" or "hashcode" method use more than the database id for generation or comparison ... of calls like: AttributeName EQUALS method called for <attributename name="null" values="" id="11
15

Apparent Lazy Loading issues.

to be two more. First, as we are dealing with maps, the "equals" and "hashcode" methods on the key ... with this is, when "find" is called, the object is being lazy loaded. So if the "equals" or "hashcode" method ... at the output from the second junit test, you will see heaps of calls like: AttributeName EQUALS method
14

Help with JPA2 Criteria and conditional operator grouping

");     c.select(root);   c.where(     builder.and(builder.equal(namePath, nameParam),                builder.equal(conditionOnePath, true)),         builder.and(         builder.or(             builder.equal(conditionTwoPath, false),             builder.equal(conditionThreePath, false
14

TYPE Expression

.equal(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o ... string equals etc. work just fine? thanks for any help! PS: Using ODB 2.3.3 Alex quasado Alexander ... );         cq.select(e);         cq.where(cb.equal(e.type(), cb.literal(A.class
14

Searching lists within objects

.and(                     cb.equal(attributeValuesJoin.get("value"), "Alex"),                     cb.equal(attributeJoin.get("name"), "firstname")                 ),                 cb.and(                     cb.equal(attributeValuesJoin2.get("value"), "Baldwin"),                     cb.equal(attributeJoin2
14

Field not persisted in abstract class with two level of nesting

) {         super(v);     }     @Override     public boolean equals(Object obj) {         TZ1 x = (TZ1) obj;         return (x.value == null ? value == null : x.value.equals(value ... );     }     @Override     public boolean equals(Object obj) {         TZ2 x = (TZ2) obj
2

Use temporary files to enable very large transactions

();          }          return uid.hashCode();      }      @Override      public boolean equals(Object obj ... this.getUid().equals(((ModelElement)obj).getUid());          }          return super.equals(obj ... {      public String getUid();      @Override      public boolean equals(Object obj);      @Override
2

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ...         public boolean equals(Object obj) {             return name.equals(((MyKeyEntity)obj).name

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