ObjectDB ObjectDB

Internal Website Search

1-10 of 12 resultsRefresh

Finding an object by its datetime

Finding an object by its datetime

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

Date field Index is corrupted due to time change

        DateTime dt = null;         try {             dt = new DateTime(dtf.parse("2015.10.31 09:18:14"), new ... DateTime(dtf.parse("2015.12.09 10:59:57"), new Short((short)10), null, "121 Jerry");             em ... ();         }         try {             dt = new DateTime(dtf.parse("2015.12.10 12:46:28"), new Short((short)19

Wrong data stored in time only fields

();         em.getTransaction().begin();         // Add records that are a problem         DateTime dt = null;         try {             dt = new DateTime(dtf.parse("2015.10.30 18:18:14 ... ();         }                 try {             dt = new DateTime(dtf.parse("2015.12.09 21:26:19

Database Schema Evolution

Explains how ObjectDB handles automatically schema changes.

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.


Static Field javax.jdo.Constants String OPTION_VERSION_DATETIME "javax.jdo.option.version.DateTime" Since: JDO 2.1 See Also: PersistenceManagerFactory.supportedOptions()

java 8 LocalDateTime is not working in query

able to query without datetime field in where clause, but with datetime in where clause doesn't ... > { @Override public Timestamp convertToDatabaseColumn(LocalDateTime dateTime) { return Timestamp.valueOf(dateTime); } @Override public LocalDateTime

NPE at com.objectdb.jpa.JpaQuery.getResultList

(fromMomentPayload.get("dateTime"))); Query q = em.createQuery(query ... .orderBy(cb.desc(fromMomentPayload.get("dateTime")));             Query q = em.createQuery(query ... static final class MomentPayload {         java.sql.Timestamp dateTime;     } } support Support


See Also: PersistenceManagerFactory.supportedOptions() String OPTION_VERSION_DATETIME "javax.jdo.option.version.DateTime" "javax.jdo.option.version.DateTime" Since: JDO 2.1

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