Internal Website Search

61-70 of 200 resultsRefresh

Finding an object by its datetime

, TemporalType.TIMESTAMP); } @Entity public class Booking { @Temporal(TemporalType.TIMESTAMP) Calendar btime; }   I'm trying to search for the exact timestamp I persisted. This is a snippet of what I'm trying accomplish (won't compile

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

.data.engine.odaconsumer.OdaDataException: Cannot get the timestamp value column: 3.    ... .ClassCastException: java.util.Date cannot be cast to java.sql.Timestamp at org.eclipse.birt.data.engine ... .ClassCastException: java.util.Date cannot be cast to java.sql.Timestamp at com.objectdb.oda.ResultSet

query on calendar class

(TemporalType.TIMESTAMP) private Calendar start; I tested: ObjectDB does not currently support extracting a day of week from a date (methods ... Timestamp as the field type instead of Calendar

LifeCycle Event with Embeddable classes

) private List<Bar> barList; @Temporal(TemporalType.TIMESTAMP) private Timestamp modifyDate; @PrePersist @PreUpdate void onPreUpdate() { modifyDate = new Timestamp(System.currentTimeMillis()); }} @Embeddable public class Bar { @Temporal(TemporalType.TIMESTAMP) private

TemporalType injection with Calendar using JPA

have annotated with TemporalType.TIMESTAMP When I use a TIMESTAMP) public Calendar getBeginTime ... = beginTime; } @Temporal(TemporalType.TIMESTAMP) public Calendar getEndTime

javax.persistence.EntityTransaction

the current resource transaction, writing any unflushed changes to the database. Commit the current resource transaction ... > () Determine whether the current resource transaction

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

; @Temporal(javax.persistence.TemporalType.TIMESTAMP)     private Date createdTime;     @Temporal(javax.persistence.TemporalType.TIMESTAMP)     ... ; @Temporal(javax.persistence.TemporalType.TIMESTAMP)     Date postTime;

javax.persistence.EntityManager

instance belonging to the current persistence context. current persistence context. Get the current lock mode for the entity instance.

javax.jdo.spi.StateInterrogation

managed by the application or the data store, then the ObjectId returned is only valid within the current ... has been deleted. Instances that have been deleted in the current transaction return Boolean ... the current transaction.

javax.jdo.PersistenceManagerFactory

become in scope until it is added to the current set via currently active (in scope) fetch groups. currently active (in scope) fetch groups. The methods