Top Constructors Methods
org.hibernate.annotations

public Class NoAttributeConverter<O, R>

extends Object
implements AttributeConverter<O, R>
Class Inheritance
All Implemented Interfaces
jakarta.persistence.AttributeConverter
Annotations
@Deprecated
since:6.2
@Remove
Imports
jakarta.persistence.AttributeConverter, org.hibernate.Remove

Deprecated

since 6.2.

this class is no longer used

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public R
convertToDatabaseColumn(Object
the entity attribute value to be converted
attribute
)

Implements jakarta.persistence.AttributeConverter.convertToDatabaseColumn.

Converts the value stored in the entity attribute into the data representation to be stored in the database.
public O
convertToEntityAttribute(Object
the data from the database column to be converted
dbData
)

Implements jakarta.persistence.AttributeConverter.convertToEntityAttribute.

Converts the data stored in the database column into the value to be stored in the entity attribute.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NoAttributeConverterback to summary
public NoAttributeConverter()

Method Detail

convertToDatabaseColumnback to summary
public R convertToDatabaseColumn(Object attribute)

Implements jakarta.persistence.AttributeConverter.convertToDatabaseColumn.

Doc from jakarta.persistence.AttributeConverter.convertToDatabaseColumn.

Converts the value stored in the entity attribute into the data representation to be stored in the database.

Parameters
attribute:Object

the entity attribute value to be converted

Returns:R

the converted data to be stored in the database column

Annotations
@Override
convertToEntityAttributeback to summary
public O convertToEntityAttribute(Object dbData)

Implements jakarta.persistence.AttributeConverter.convertToEntityAttribute.

Doc from jakarta.persistence.AttributeConverter.convertToEntityAttribute.

Converts the data stored in the database column into the value to be stored in the entity attribute. Note that it is the responsibility of the converter writer to specify the correct dbData type for the corresponding column for use by the JDBC driver: i.e., persistence providers are not expected to do such type conversion.

Parameters
dbData:Object

the data from the database column to be converted

Returns:O

the converted value to be stored in the entity attribute

Annotations
@Override