ObjectDB ObjectDB

Internal Website Search

11-20 of 61 resultsRefresh
29

Auto Date for Creation and Update

the database. I can confirm that the "onPrePersist" is called. Is java.sql.Timestamp not supported? Any ... . */ @Temporal(TemporalType.TIMESTAMP) private Timestamp created; /** * Adjusting the field ... () { this.created = Timestamp.valueOf(LocalDateTime.now(ZoneOffset.UTC)); } tlehmann Thomas Lehmann
28

Calendar in Criteria Querys

with no date. java.sql.Timestamp - representing both data and time. If possible, you should use these types ... ; import java.sql.Timestamp; import javax.persistence.*; import javax.persistence.criteria ... <Timestamp> p = cb.parameter(Timestamp.class);         query.where(cb.lessThanOrEqualTo(e.get("c1"), p
17

Index Definition

, java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type. Reference to an entity object
17

JPA Primary Key

. java.lang.String. java.util.Date, java.sql.Date, java.sql.Time, java.sql.Timestamp. Any enum type
10

javax.persistence.criteria.CriteriaBuilder

2.0 Expression<Timestamp> currentTimestamp() Create expression to return current timestamp. Create expression to return current timestamp. Returns: expression for current timestamp Since: JPA 2.0
9

currentTimestamp()

Method javax.persistence.criteria.CriteriaBuilder Expression<Timestamp> currentTimestamp() Create expression to return current timestamp. Returns: expression for current timestamp Since: JPA 2.0
9

javax.persistence.TemporalType

java.sql.Time Map as java.sql.Time Since: JPA 1.0 TemporalType TIMESTAMP Map as java.sql.Timestamp Map as java.sql.Timestamp Since: JPA 1.0 TemporalType valueOf(String name) Returns the enum constant
6

java 8 LocalDateTime is not working in query

how it should work: package test; import javax.persistence.*; import java.sql.Timestamp; import java ... static class LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> {         @Override         public java.sql.Timestamp convertToDatabaseColumn(java.time.LocalDateTime
5

javax.persistence.Version

, Integer, short, Short, long, Long, java.sql.Timestamp. Example: @Version @Column(name
0

setResultClass(cls)

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