ObjectDB ObjectDB

Internal Website Search

1-10 of 45 resultsRefresh
114

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
108

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
58

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
32

General Performance Issues Illustrated with a Specific Method

; import javax.persistence.Temporal; import lk.gov.health.phsp.pojcs.Identifiable; @Entity ... */ @ManyToOne(fetch = FetchType.LAZY) private WebUser createdBy; @Temporal(javax.persistence.TemporalType.TIMESTAMP) private Date createdAt; @Temporal(javax.persistence.TemporalType.DATE
20

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(param, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( Parameter<Date> param, Date value, TemporalType temporalType ) Bind an instance of java.util.Date to a Parameter object. Parameters: param - parameter object value - parameter value temporalType - temporal type Returns: the same query
5

setParameter(param, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( Parameter<Calendar> param, Calendar value, TemporalType temporalType ) Bind an instance of java.util.Calendar to a Parameter object. Parameters: param - parameter object value - parameter value temporalType - temporal type Returns

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