ObjectDB ObjectDB

Internal Website Search

21-30 of 61 resultsRefresh
25

General Performance Issues Illustrated with a Specific Method

.TemporalType.TIMESTAMP) private Date createdAt; @Temporal(javax.persistence.TemporalType.DATE ... lastEditBy; @Temporal(javax.persistence.TemporalType.TIMESTAMP) private Date lastEditeAt ... WebUser retiredReversedBy; @Temporal(javax.persistence.TemporalType.TIMESTAMP) private Date
23

Finding an object by its datetime

", Booking.class) .setParameter("btime", btime, 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
23

Setting temp directory location in ObjectDB

try to read the odb.file, I see that the parent folder OS timestamp changes, i just want to read the file. Ideally the OS timestamp should not change for the parent folder when the odb file open ... .getPersistenceManager(); When pmf.getPersistanceManager() line gets executed, the see the OS timestamp
23

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

: Cannot get the timestamp value column: 3.     org.eclipse.datatools.connectivity.oda.OdaException ;     java.lang.ClassCastException: java.util.Date cannot be cast to java.sql.Timestamp at org.eclipse ... .ClassCastException: java.util.Date cannot be cast to java.sql.Timestamp at com.objectdb.oda.ResultSet
21

LifeCycle Event with Embeddable classes

= CascadeType.ALL, fetch = FetchType.EAGER) 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
20

query on calendar class

String A;     @Temporal(TemporalType.TIMESTAMP) private Calendar start; I tested: Query query=em ... a Calendar to a Date. Using Date or Timestamp as the field type instead of Calendar should work. support Support Thanks for answer. I changed type of start field to: java.sql.Date, java.sql.Timestamp, java
17

TemporalType injection with Calendar using JPA

object as a primary key, which has time fields which I have annotated with TemporalType.TIMESTAMP ... String periodType; @Temporal(TemporalType.TIMESTAMP) public Calendar getBeginTime ... ) { this.beginTime = beginTime; } @Temporal(TemporalType.TIMESTAMP) public Calendar
5

javax.persistence.Basic

.Date, java.sql.Time, java.sql.Timestamp, byte[], Byte[], char[], Character[], enums, and any
4

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

.TemporalType.TIMESTAMP) private Date createdTime; @Temporal(javax.persistence.TemporalType.TIMESTAMP) private Date modifiedTime; private @Index @Temporal(javax.persistence.TemporalType.TIMESTAMP) Date ... .TIMESTAMP) private Date refreshedTime; @Temporal(javax.persistence.TemporalType.TIMESTAMP) private
0

javax.jdo.Query

class Date; or one of the java.sql classes Date, Time, or Timestamp; or a user-defined class

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