ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh

String Contains Query Result - Possible?

Hi, I have a managed database for an Entity, "Program", containing a String field, "description ... , the only solution I have is to iterate over all the Program objects manually and find one that is contained ... ) { for(Program p : allPrograms()) if(desc.contains(p.getDescription())) return p; return null

Memory error during commit, if @ElementCollection field contains many elements

> values = new HashMap<>(); The element collection contains more than 10.000 elements ... collection into a new entity classes. Every TCStep will reference a new entity object that will contain

contains(cls, primaryKey)

Method javax.persistence.Cache boolean contains( Class cls, Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache Since: JPA 2.0


Method javax.persistence.EntityManager boolean contains( Object entity ) Check if the instance is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Returns: boolean indicating if entity is in persistence context Throws: IllegalArgumentException - if not an entity Since: JPA 1.0

Working with JPA Entity Objects

soft references instead of weak references. The contains method can check if a specified entity object is in the persistence context: boolean isManaged = em.contains(employee); The persistence

Shared (L2) Entity Cache

is cached: boolean isCached = cache.contains(MyEntity.class, Long.valueOf(id)); Cached entity

InternalException when querying indexed field using a list that contains duplicates

the specific case when: A query filter like this is used: ":ids.contains(originalId)" originalId is an indexed String field on the candidate class :ids is a list which contains a duplicate entry If the field is unindexed, or :ids does not contain duplicates, the exception is not thrown and the query

WeakRef Purge ObjectDb threads not stopping with Tomcat (in application container)

Hi, We have threads that are not stopping with Tomcat requiring a hard stop of the container. Can you please help us resolve this issue? Thanks, Clinton / Fazle What is the impact of the issue ... , so it should be more friendly for Tomcat and similar containers. support Support

Java EE Web Tutorial

. If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty

[ODB1] Chapter 7 - JDOQL Queries

: A candidate collection containing persistent objects (usually an Extent) A candidate class (usually ... is a subset of objects from the candidate collection that contains only the instances of the candidate class ... is used, and the candidate collection contains all the non embedded instances of the candidate class

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