ObjectDB Database Search

1-49 of 49 results

JPA Persistable Types

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

AnnotationRef jakarta.persistence.Temporal

JPA Annotation Temporal Target: METHOD, FIELD Implemented Interfaces: Annotation This annotation ... . It may only be specified for fields or properties of these types. The Temporal annotation ... when the element collection value is of such a temporal type. Example: @ Temporal (DATE) protected

CriteriaBuilder.extract(field,temporal) - JPA Method

; TemporalField  field,     Expression   temporal ) Create an expression that returns the value of a field extracted from a date, time, or datetime. Parameters: field - a temporal field type temporal - a date, time, or datetime Return: expression for the value of the extracted field Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.Temporal.value

JPA Annotation Attribute in jakarta.persistence. Temporal TemporalType value default null The type used in mapping java.util.Date or java.util.Calendar . Since: JPA 1.0

Query Parameters in JPA

or a combination of date and time, as explained in detail in the Date and Time ( Temporal ) Types

General Performance Issues Illustrated with a Specific Method

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

query on calendar class

; @ Temporal (TemporalType.TIMESTAMP) private Calendar start; I tested: Query query=em.createQuery ... .Timestamp, java.util.Date with @ Temporal (TemporalType.DATE), @ Temporal (TemporalType.TIME) and @ Temporal (TemporalType.TIMESTAMP). I test the queries: Query query=em.createQuery("SELECT c FROM Cdr c

Date field Index is corrupted due to time change

.Query; import javax.persistence.SequenceGenerator; import javax.persistence. Temporal ; import javax ... ; @Basic(optional = false)         @ Temporal (TemporalType.TIMESTAMP ... ; @Basic(optional = false)         @ Temporal (TemporalType.DATE)  

Wrong data stored in time only fields

.persistence. Temporal ; import javax.persistence.TemporalType; import javax.persistence.Version; public ... ;  @ Temporal (TemporalType.TIMESTAMP)         public Date ... ;  @ Temporal (TemporalType.DATE)         public Date getStartDate

Wrong data stored in date only fileds

private Date startTime; // Time: time part of startDateTime @Basic(optional = false) @ Temporal ... setStartDateTime(Date startDateTime) { this.startDateTime = startDateTime; } @Basic(optional = false) @ Temporal ... startDate) { this.startDate = startDate; } @Basic(optional = false) @ Temporal (TemporalType.TIME) public

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

extract ( TemporalField  field,  Expression   temporal ) Create an expression that returns the value of a field extracted from a date, time, or datetime. Parameters: field - a temporal field type temporal - a date, time, or datetime Return: expression for the value of the extracted field

TemporalType injection with Calendar using JPA

; private String periodType; @ Temporal (TemporalType.TIMESTAMP) public Calendar getBeginTime() { return beginTime; } public void setBeginTime(Calendar beginTime) { this.beginTime = beginTime; } @ Temporal ... Calendar . You will have to replace  Calendar with one of the supported temporal types. support

Calendar in Criteria Querys

temporal types: java.sql.Date - representing date with no time. java.sql.Time - representing time ... ;            @ Temporal (TemporalType.TIMESTAMP ... ;       @ Temporal (TemporalType.TIMESTAMP)     

Finding an object by its datetime

", btime, TemporalType.TIMESTAMP); } @Entity public class Booking { @ Temporal (TemporalType.TIMESTAMP ... Support Hi, I forgot the @Index beside @ Temporal (TemporalType.TIMESTAMP) Calendar btime; It looks like this now in the entity class: @Index @ Temporal (TemporalType.TIMESTAMP) Calendar btime; And I

Error 363 - Failed to read value of inverse relationship

, avatarEnabled = true; @Column(nullable = false) private String playerName, password, email; @ Temporal ... @GeneratedValue private Long id; @ Temporal (TemporalType.TIMESTAMP) private Date sendDate = new Date ... ; @GeneratedValue //    private Long id; // //    @ Temporal (TemporalType

Possible issue with String fields

@GeneratedValue private long id; String company_pkey; String external_booking_ref; @ Temporal (javax.persistence.TemporalType.DATE) Date start_dt; @ Temporal (javax.persistence.TemporalType.DATE) Date end_dt; @ Temporal (javax.persistence.TemporalType.DATE) Date new_end_dt; String vehicle_group; String vehicle

LifeCycle Event with Embeddable classes

= FetchType.EAGER) private List barList; @ Temporal (TemporalType.TIMESTAMP) private Timestamp ... ()); }} @Embeddable public class Bar { @ Temporal (TemporalType.TIMESTAMP) private Timestamp modifyDate

Query filter comparing Dates

removed the          @ Temporal (TemporalType.DATE)  annotation ... . So it seems to me that the         @ Temporal (TemporalType.DATE) annotation

java.sql.Timestamp.getTime() not working

Player { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public int id; @ Temporal (TemporalType.TIMESTAMP) public Timestamp loginAt; @ Temporal (TemporalType.TIMESTAMP) public Timestamp registeredAt

Problem with entities detection

.persistence.OneToMany; import javax.persistence.Table; import javax.persistence. Temporal ; import javax ... _nacimiento") @ Temporal (TemporalType.DATE) private Date fecha_nacimiento; private int[] telefonos

Query.setParameter(name,value,temporalType) - JPA Method

value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

Query.setParameter(param,value,temporalType) - JPA Method

value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

Query.setParameter(param,value,temporalType) - JPA Method

- parameter value temporalType - temporal type Return: the same query instance Throws

Query.setParameter(position,value,temporalType) - JPA Method

temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

Query.setParameter(position,value,temporalType) - JPA Method

- parameter value temporalType - temporal type Return: the same query instance Throws

Query.setParameter(name,value,temporalType) - JPA Method

temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

TypedQuery.setParameter(param,value,temporalType) - JPA Method

- parameter value temporalType - temporal type Return: the same query instance Throws

TypedQuery.setParameter(param,value,temporalType) - JPA Method

value - parameter value temporalType - temporal type Return: the same query instance Throws

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

: position - position value - parameter value temporalType - temporal type Return: the same query instance

StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method

name value - parameter value temporalType - temporal type Return: the same query instance Throws

StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method

- parameter name value - parameter value temporalType - temporal type Return: the same query instance

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

- position value - parameter value temporalType - temporal type Return: the same query instance Throws

StoredProcedureQuery.setParameter(param,value,temporalType) - JPA Method

- parameter object value - parameter value temporalType - temporal type Return: the same query instance

StoredProcedureQuery.setParameter(param,value,temporalType) - JPA Method

- parameter object value - parameter value temporalType - temporal type Return: the same query

TypedQuery.setParameter(position,value,temporalType) - JPA Method

- parameter value temporalType - temporal type Return: the same query instance Throws

TypedQuery.setParameter(position,value,temporalType) - JPA Method

- parameter value temporalType - temporal type Return: the same query instance Throws

TypedQuery.setParameter(name,value,temporalType) - JPA Method

value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

TypedQuery.setParameter(name,value,temporalType) - JPA Method

- parameter value temporalType - temporal type Return: the same query instance Throws

InterfaceRef jakarta.persistence.criteria.TemporalField

JPA Interface TemporalField Type Parameters: - the resulting type of the extracted value - the temporal type (date, time, or datetime) Each instance represents a type of field which can be extracted from a date, time, or datetime. See Also: LocalDateField LocalTimeField LocalDateTimeField CriteriaBuilder.extract Since: JPA 3.2

AnnotationRef jakarta.persistence.Converter

to attributes explicitly annotated Enumerated or Temporal (or designated as such via XML). A converter

AnnotationRef jakarta.persistence.Convert

explicitly declared as Enumerated or Temporal . Applications that depend on such conversions are not

_PersistenceException: Type is not found on getSingleResult.

;  @ Temporal (TemporalType.DATE)     private Date fechaNacimiento;    

Error using query with MAX() function

@ Temporal (value = TemporalType.TIMESTAMP) private Date changeDate; public int getId() { return id

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

Quick example:  public class MyClass { @Column(name = "myText") String myText; @ Temporal (TemporalType.TIMESTAMP) @Column(name = "myDate") Date myDate; } Now, when querying the db with: Query q = JPA.em().createQuery("SELECT m FROM MyClass m WHERE m.myDate LIKE :query OR m.myText LIKE :query

Auto Date for Creation and Update

and time when book author has been created. */ @ Temporal (TemporalType.TIMESTAMP) private Timestamp

Setting temp directory location in ObjectDB

directory where fileName.odb is located. But i want to set the tempority folder location

java.sql.Timestamp with milliseconds

Using JPA with other providers java.util.Date will not provide support to store milliseconds, this can usually be overcome using (see here http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Timestamp.html) @Id @Column(name = "STMP") @ Temporal (TemporalType.TIMESTAMP) private Timestamp

Entity with java.util.Date column gives ClassCastException in BIRT

; @ Temporal (value = TemporalType.DATE)     private Date birthdate;     /**  

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null

;  String url = "";     @ Temporal (javax.persistence.TemporalType.TIMESTAMP)     private Date createdTime;     @ Temporal (javax.persistence.TemporalType ... ;  @ Temporal (javax.persistence.TemporalType.TIMESTAMP)     Date postTime;