ObjectDB ObjectDB

Internal Website Search

131-140 of 200 resultsRefresh

Error using query with MAX() function

remark; @Basic @Temporal(value = TemporalType.TIMESTAMP) private Date changeDate; public ... ) { this.remark = remark; } public Date getChangeDate() { return changeDate; } public void setChangeDate(Date changeDate) { this.changeDate = changeDate; } } public class Test

Error 363 - Failed to read value of inverse relationship

String playerName, password, email; @Temporal(TemporalType.TIMESTAMP) private Date signUpDate = new Date(), signInDate; @Embedded @OneToOne private PersonalData personalData ... ; private HashMap<Player, Date> messageReadDates = new HashMap<Player, Date>(); protected Player


and the entity already exists. The current transaction, if one is active, will be marked for rollback ... time. The current transaction, if one is active, will be marked for rollback. Since: JPA 1.0 ... within this Throwable object information about the current state of the stack frames for the current thread

java 8 LocalDateTime is not working in query

query = em.createQuery(     "SELECT t FROM Test t WHERE t.date BETWEEN :startDate AND :endDate ORDER BY t.date"); query.setParameter("startDate", LocalDateTime.now()); query.setParameter ... : SELECT t FROM Test t Joe Joe Khan New Java 8 date/time types are not supported by JPA yet. support

JPA 2.2 LocalDate still not working

challenges with supporting all the Java 8 date and time fields. They are currently supported ... . Otherwise, on retrieval a Date instance may be instantiated. Currently selecting such a field in the query SELECT ... (e.g. for LocalDate, and not all the Java 8 date and time types) can be added soon. support Support


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


Method javax.persistence.criteria.CriteriaBuilder Expression<X> least( Expression<X> x ) Create an aggregate expression for finding the least of the values (strings, dates, etc). Parameters: x - expression representing input value to least operation Returns: least expression Since: JPA 2.0


Employee { @Id String empName; @Id Date birthDay; ... } Since: JPA 1.0 Class


VersionStrategy DATE_TIME Since: JDO 2.1 VersionStrategy NONE Since: JDO 2.1 VersionStrategy STATE_IMAGE


; BigInteger; String; and Date. Parameters: ordering - the ordering specification. Since: JDO 1.0

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