ObjectDB ObjectDB

Internal Website Search

81-90 of 200 resultsRefresh
18

query on calendar class

'}? The only solution is keep time and date i other fields and do that same wiht DAY_OF_WEEK? Solek Henryk Walezy ObjectDB does not currently support extracting a day of week from a date (methods for extracting other date parts are supported by ObjectDB as an extension to JPA), so you should consider duplicating
4

setParameter(position, value, temporalType)

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

setParameter(name, value, temporalType)

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

javax.persistence.Id

should be one of the following types: any Java primitive type; any primitive wrapper type; String; java.util.Date; java.sql.Date; java.math.BigDecimal; java.math.BigInteger. The mapped column for the primary key
4

javax.persistence.Basic

types, String, java.math.BigInteger, java.math.BigDecimal, java.util.Date, java.util.Calendar, java.sql.Date, java.sql.Time, java.sql.Timestamp, byte[], Byte[], char[], Character[], enums, and any
4

setParameter(position, value, temporalType)

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

setParameter(name, value, temporalType)

Method javax.persistence.Query Query setParameter( String name, Date value, TemporalType temporalType ) Bind an instance of java.util.Date to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Returns: the same query instance Throws
3

Using SELECT BETWEEN with LocalDate

I am trying to query all entities whose date is between today and today + X days. The date inside ... Element e WHERE e.date between CURRENT_DATE and :date", Element.class) .setParameter("date", date) .getResultList(); I get the following error for e.date in IntelliJ (Type mismatch: number, date
0

setFilter(filter)

are valid. Equality and ordering comparisons of Date fields and Date parameters are valid. White
0

javax.jdo.spi.JDOImplHelper

a DateFormat instance for use with constructing Date instances. Register a DateFormat instance for use with constructing Date instances. The default is the default DateFormat instance. If the new instance

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