ObjectDB ObjectDB

Internal Website Search

31-40 of 56 resultsRefresh
19

query on calendar class

String A;     @Temporal(TemporalType.TIMESTAMP) private Calendar start; I tested: Query query=em ... .util.Date with @Temporal(TemporalType.DATE), @Temporal(TemporalType.TIME) and @Temporal(TemporalType
19

Date field Index is corrupted due to time change

.TemporalType; import javax.persistence.Version; public class DeleteTest {         public static void ... ;         }         @Basic(optional = false)         @Temporal(TemporalType.TIMESTAMP ... ;         }         @Basic(optional = false)         @Temporal(TemporalType.DATE)         public Date
19

Query filter comparing Dates

the database as time (e.g. in milliseconds) since 1.1.1970 UTC. For TemporalType.DATE the hours ... . How can they be equal than ? I launched the test also after I removed the @Temporal(TemporalType ... (TemporalType.DATE) annotation changes the behaviour of the stored date to an incorrect way. jakab
19

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 ... (TemporalType.TIMESTAMP) Calendar btime; It looks like this now in the entity class: @Index @Temporal
19

Wrong data stored in time only fields

.persistence.TemporalType; import javax.persistence.Version; public class DateTimeTest {         public ... ) {             this.version = version;         }         @Basic(optional = false)         @Temporal(TemporalType ... = startDateTime;         }         @Basic(optional = false)         @Temporal(TemporalType.DATE
16

Wrong data stored in date only fileds

(optional = false) @Temporal(TemporalType.TIMESTAMP) public Date getStartDateTime ... (TemporalType.DATE) public Date getStartDate() { return startDate; } public void ... ) @Temporal(TemporalType.TIME) public Date getStartTime() { return startTime
16

Error 363 - Failed to read value of inverse relationship

String playerName, password, email; @Temporal(TemporalType.TIMESTAMP) private Date ... ; @Temporal(TemporalType.TIMESTAMP) private Date sendDate = new Date(); private String ... (TemporalType.TIMESTAMP) //    private Date sendDate = new Date(); // //    private String text
16

Possible issue with String fields

; 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_identifier
5

MapKeyTemporal.value

Annotation Element javax.persistence.MapKeyTemporal TemporalType value (Required) The type used in mapping java.util.Date or java.util.Calendar. Since: JPA 2.0
5

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 postTime; @OneToOne public NewsDetails details; //not used @Temporal(javax.persistence.TemporalType

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