Converter
A converter is a component or operation that transforms data, values, or objects from one type or representation into another.
Java Persistence with Spring Data and Hibernate epub
A custom type converter is application-defined conversion logic that translates values between a domain type and a persistence representation.
- How it is used
- Maps rich entity-attribute values to database representations when the domain model and available schema differ.
- How deep it goes
- Shows property configuration and both conversion directions, then considers nested attributes and a later change to embeddable mapping.
- Examples
- Uses a monetary amount stored as a currency-bearing string and a zipcode reconstructed as a country-specific subclass.
- What you can do after
- Build it from scratch with AttributeConverter and @Convert to store and reload a domain value through one column.
Read how Java Persistence with Spring Data and Hibernate epub explains converter →
Kafka Streams in Action, Second Edition
A converter is a Kafka Connect component that changes data between Connect's internal representation and a serialization format used by Kafka or an external system.
- How it is used
- Configures Kafka Connect to serialize keys and values entering Kafka or deserialize them for external systems.
- How deep it goes
- Defines conversion direction and key/value settings, but stops short of implementing a custom converter.
- Examples
- Uses StringConverter for keys, JsonConverter for values, and a JDBC source connector with schemas disabled.
- What you can do after
- Operate/configure Kafka Connect converters through worker defaults, connector overrides, and key/value serialization settings.
Read how Kafka Streams in Action, Second Edition explains converter →
Spring in Action, Sixth Edition
A Spring Converter is a class implementing the Converter interface to transform a value from one type into another during data binding.
- How it is used
- Bridges submitted form values and domain objects during Spring MVC data binding.
- How deep it goes
- Explains interface implementation, lookup logic, bean discovery, and automatic registration, but defers database-backed conversion.
- Examples
- Uses taco ingredient checkboxes, ingredient IDs, a Map lookup, and IngredientByIdConverter as concrete implementation artifacts.
- What you can do after
- Build it from scratch by implementing Converter<String, Ingredient> and registering the class as a Spring component.
Read how Spring in Action, Sixth Edition explains converter →
ASP.NET Core in Action, 3e
A type converter is a .NET conversion component or convention that converts values between specified types, including converting textual input to another type.
- How it is used
- Converts string request values while Razor Pages model binding supplies handler parameters.
- How deep it goes
- Identifies primitive types, TryParse, and TypeConverter as supported paths without detailing converter implementation.
- Examples
- Uses a Razor Page handler that accepts an integer number and calculates its square.
- What you can do after
- Apply model binding to receive converted primitive values and recognize custom types supported by TryParse or TypeConverter.
Related concepts
- source connectorused by · A source connector is a Kafka Connect connector that reads data from an external source system and publishes records to Kafka.
- single message transformationused by · A single message transformation is a stateless Kafka Connect operation that independently modifies or filters each record passing through a connector.
- sink connectorused by · A sink connector is a Kafka Connect connector that reads records from Kafka and exports them to an external destination system.
- to_symincludes · to_sym is a Ruby conversion method that returns a symbol corresponding to a value's textual representation.
- to_sincludes · to_s is a Ruby conversion method that returns a string representation of its receiver.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



