Class TypedValue

  • All Implemented Interfaces:
    java.io.Serializable

    public final class TypedValue
    extends java.lang.Object
    implements java.io.Serializable
    An ordered pair of a value and its Hibernate type.
    See Also:
    Type, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TypedValue​(Type type, java.lang.Object value)  
      TypedValue​(Type type, java.lang.Object value, EntityMode entityMode)
      Deprecated.
      explicit entity mode support is deprecated
    • Constructor Detail

      • TypedValue

        public TypedValue​(Type type,
                          java.lang.Object value)
      • TypedValue

        @Deprecated
        public TypedValue​(Type type,
                          java.lang.Object value,
                          EntityMode entityMode)
        Deprecated.
        explicit entity mode support is deprecated
    • Method Detail

      • getValue

        public java.lang.Object getValue()
      • getType

        public Type getType()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object