public class

DbTimestampType

extends TimestampType
java.lang.Object
   ↳ org.hibernate.type.AbstractStandardBasicType<T>
     ↳ org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
       ↳ org.hibernate.type.TimestampType
         ↳ org.hibernate.type.DbTimestampType

Class Overview

dbtimestamp: An extension of TimestampType which maps to the database's current timestamp, rather than the jvm's current timestamp.

Note: May/may-not cause issues on dialects which do not properly support a true notion of timestamp (Oracle < 8, for example, where only its DATE datatype is supported). Depends on the frequency of DML operations...

Summary

Fields
public static final DbTimestampType INSTANCE
[Expand]
Inherited Fields
From class org.hibernate.type.TimestampType
Public Constructors
DbTimestampType()
Public Methods
String getName()
Returns the abbreviated name of the type.
String[] getRegistrationKeys()
Get the names under which this type should be registered in the type registry.
Date seed(SessionImplementor session)
Generate an initial version.
[Expand]
Inherited Methods
From class org.hibernate.type.TimestampType
From class org.hibernate.type.AbstractSingleColumnStandardBasicType
From class org.hibernate.type.AbstractStandardBasicType
From class java.lang.Object
From interface org.hibernate.type.BasicType
From interface org.hibernate.type.LiteralType
From interface org.hibernate.type.SingleColumnType
From interface org.hibernate.type.StringRepresentableType
From interface org.hibernate.type.Type
From interface org.hibernate.type.VersionType
From interface org.hibernate.type.XmlRepresentableType

Fields

public static final DbTimestampType INSTANCE

Public Constructors

public DbTimestampType ()

Public Methods

public String getName ()

Returns the abbreviated name of the type.

Returns
  • String the Hibernate type name

public String[] getRegistrationKeys ()

Get the names under which this type should be registered in the type registry.

Returns
  • The keys under which to register this type.

public Date seed (SessionImplementor session)

Generate an initial version.

Parameters
session The session from which this request originates.
Returns
  • an instance of the type