ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
6

JPA Entity Fields

relationship: @Entity public class Employee { String name; @ManyToOne Department department ... Department { @OneToMany(mappedBy="department") @MapKey(name="name") Map<String,Employee ... () { return _id; } void setId(int id) { _id = id; } private String str; String getStr
6

Paths and Types in JPQL and Criteria API

, string, date). Simple type values are more useful in queries. They have special operators and functions (e.g. for strings and for numbers), they can be compared by all six comparison operators ... (number, boolean, string, date). For a path expression to be valid the user defined persistable class
5

JPA Queries

interface) is the only neccessary interface for defining and running string based JPQL queries (e.g ... concatenating JPQL strings into a valid complete JPQL query. JPA 2 introduced the JPA Criteria Query API, as ... query string (i.e. to a String instance containing JPQL). An essential interface for using
5

JPA Named Queries

A named query is a statically defined query with a predefined unchangeable query string. Using ... strings from the Java code. It also enforces the use of query parameters rather than embedding literals dynamically into the query string and results in more efficient queries. @NamedQuery
1

Step 2: Entity Class and Persistence Unit

; private String name; private Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation: @Override public String
1

Step 2: Entity Class and Persistence Unit

Long id; private String name; private Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation
1

Step 2: Entity Class and Persistence Unit

; // Persistent Fields: @Id @GeneratedValue Long id; private String name ... (String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation: @Override public String toString
1

Step 2: Entity Class and Persistence Unit

Long id; private String name; private Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation: @Override
1

Step 2: Define a JPA Entity Class

@GeneratedValue Long id; private String name; private Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis()); } // String Representation
0

JDO Predefined ID Classes

, to use a String primary key define a primary key field of type String: @PersistenceCapable public class MyClass { @PrimaryKey String id; } Persistent objects with a String primary key (including instances of MyClass) can be represented uniquely by StringIdentity, as a combination of a class and a string value.

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