ObjectDB ObjectDB

Internal Website Search

1-10 of 46 resultsRefresh
111

javax.persistence.Temporal

javax.persistence Annotation Temporal Target: Fields (including property get methods ... .Calendar. It may only be specified for fields or properties of these types. The Temporal annotation ... annotation (when the element collection value is of such a temporal type. Example: @Temporal(DATE
105

Temporal.value

Annotation Element javax.persistence.Temporal TemporalType value The type used in mapping java.util.Date or java.util.Calendar. Since: JPA 1.0
57

JPA Persistable Types

and Time (Temporal) Types The java.sql date and time classes represent different parts of dates ... of the above, using the @Temporal JPA annotation: @Entity public class DatesAndTimes { // Date Only: java.sql.Date date1; @Temporal(TemporalType.DATE) java.util.Date date2 @Temporal
30

JPA Annotations for Fields

Reference (JavaDoc) of JPA 2 field annotations, including @Basic, @Embedded, @EmbeddedId, @Version, @Transient, @Enumerated, @MapKeyEnumerated, @Temporal and @MapKeyTemporal.
30

Date and Time in JPQL and Criteria Queries

Shows how date and time can be used in JPQL queries.
19

javax.persistence.TypedQuery

temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException ... parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type ... . Parameters: position - position value - parameter value temporalType - temporal type Returns
19

Query Parameters in JPA

of date and time, as explained in detail in the Date and Time (Temporal) Types section. For example
14

javax.persistence.Query

value - parameter value temporalType - temporal type Returns: the same query instance Throws ... temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException ... - temporal type Returns: the same query instance Throws: IllegalArgumentException - if position
8

javax.persistence.Embeddable

class. Example 1: @Embeddable public class EmploymentPeriod { @Temporal(DATE) java.util.Date startDate; @Temporal(DATE) java.util.Date endDate; ... } Example 2
5

setParameter(position, value, temporalType)

Method javax.persistence.Query Query setParameter( int position, Calendar value, TemporalType temporalType ) Bind an instance of java.util.Calendar to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Returns: the same query instance Throws

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