ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh

Using Enum type in NamedQuery: Field is not found in type

with queries that reference enum types. On my entity object is a static enum public static enum Type {     A,B,C } that is stored in an @Enumerated member variable private Type type; @Enumerated public Type getType() {     return type; } I then try to query this field in the following

Cascade type annotaion on an embeddable type

Cascade type annotaion on an embeddable type

Literals in JPQL and Criteria Queries

Literals in JPQL, as in Java, represent constant values. JPQL supports various types of literals ... . 'abc'), enum literals (e.g. mypackage.MyEnum.MY_VALUE) and entity type literals (e.g. Country). JPQL ... values, but the fully qualified name of the enum type should always be specified. For example, assuming

JPA Metamodel API

of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties) in the persistent object model are represented by the following sets of interfaces and enum types

Chapter 2 - JPA Entity Classes

Explains how to define and use JPA entity classes and other JPA persistable types.

Database Schema Evolution

and either the same type or a convertible type, as explained below. A matching field ... the hierarchy, removing an intermediate class in the hierarchy, etc.). Convertible Types When an old matching field is found but its type is different than the type of the new field (with the same name


<X>, ManagedType<X>, Type<X> Instances of the type EntityType represent entity types. Since: JPA 2.0 Attribute<?,?> getAttribute(String name) Return the attribute of the managed type that corresponds to the specified name. Return the attribute of the managed type that corresponds to the specified

[ODB1] Chapter 4 - JDO Metadata

. identity-type and objectid-class The identity-type and objectid-class attributes, which are defined ... and persistent in JDO), or a field whose declared type is java.lang.Object or some interface, but holds at runtime only values of persistent types. Specifying a none value, as demonstrated by field f1

[ODB1] Chapter 7 - JDOQL Queries

exists but its type cannot be compared with an int value, a JDOUserException is thrown. If the query ... . The execute() method returns a Collection instance, but its declared return type is Object (for future ... collection . A Query instance for this type of query can be obtained by one of the following

[ODB1] Chapter 3 - Persistent Classes

Fields and Types Storing a persistent object in the database does not store methods and code ... , are all the fields that are not defined as static, final or transient, and have persistent types. Every persistent class is a persistent type. The following predefined system types

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