ObjectDB ObjectDB

Internal Website Search

41-50 of 200 resultsRefresh
18

JPA Primary Key

. java.lang.String. java.util.Date, java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type ... ; : } @Embeddable Class EventId { int sensorId; Date time; } Because entity objects are ordered
15

Comparison in JPQL and Criteria API

follow the logic of Java's equals, comparing the content rather than the identity. Date values can be compared by using any comparison operator. Equality operators (=, <>, ==, !=) on date values in
15

Paths and Types in JPQL and Criteria API

, string, date). Simple type values are more useful in queries. They have special operators ... (number, boolean, string, date). For a path expression to be valid the user defined persistable class
15

GROUP BY and HAVING clauses

the minimum of comparable values (numeric, strings, dates). MAX - returns the maximum of comparable values (numeric, strings, dates). The following query counts for every letter the number of countries
14

javax.persistence.TypedQuery

if the argument is of incorrect type Since: JPA 2.0 Query setParameter(int position, Date value, TemporalType temporalType) Bind an instance of java.util.Date to a positional parameter. Bind an instance of java.util.Date to a positional parameter. Parameters: position - position value - parameter value
10

Apache License, Version 2.0, January 2004

to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution
10

Storing JPA Entity Objects

to the database is sometimes also useful before executing queries in order to get up to date results
3

Step 2: Define a JPA Entity Class

code: package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence ... Date signingDate; // Constructors: public Guest() { } public Guest(String name) { this.name = name; this.signingDate = new Date(System.currentTimeMillis
1

[ODB1] Chapter 3 - Persistent Classes

and String. Selected classes in package java.util: Date, Locale, HashSet, TreeSet, ArrayList ... converted into an instance of the new up-to-date persistent class. The conversion is straightforward ... type. If casting is illegal (for example from int to Date) the field is initialized with a default
1

[ODB1] Chapter 6 - Persistent Objects

if its content in memory is up to date. If true is specified and the object in database is different ... default, String and Date fields, as well as collection fields (such as ArrayList) are deleted

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