ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
4

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
4

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
4

query on calendar class

String A;     @Temporal(TemporalType.TIMESTAMP) private Calendar start; I tested: Query query=em ... ObjectDB does not currently support extracting a day of week from a date (methods for extracting ... a Calendar to a Date. Using Date or Timestamp as the field type instead of Calendar should work. support
4

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
4

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
0

javax.persistence.EntityTransaction

- if isActive() is true Since: JPA 1.0 void commit() Commit the current resource transaction, writing any unflushed changes to the database. Commit the current resource transaction, writing any ... - if the commit fails Since: JPA 1.0 boolean getRollbackOnly() Determine whether the current
0

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.persistence.EntityManager

is a managed entity instance belonging to the current persistence context. Check if the instance is a managed entity instance belonging to the current persistence context. Parameters: entity - entity ... : flushMode Since: JPA 1.0 LockModeType getLockMode(Object entity) Get the current lock mode
0

javax.jdo.spi.StateInterrogation

the application or the data store, then the ObjectId returned is only valid within the current ... instance has been deleted. Instances that have been deleted in the current transaction return Boolean ... if the parameter instance was deleted in the current transaction. Since: JDO 2.0
0

javax.jdo.PersistenceManagerFactory

. The FetchGroup does not become in scope until it is added to the current set via addFetchGroups ... Since: JDO 2.2 Set getFetchGroups() Get a modifiable Set containing a mutable copy of all currently active (in scope) fetch groups. Get a modifiable Set containing a mutable copy of all currently

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