<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Object-Mapping on Mariano Gonzalez</title>
		<link>https://mariano-gonzalez.com/tags/object-mapping/</link>
		<description>Recent content in Object-Mapping on Mariano Gonzalez</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>&lt;p&gt;Copyright © 2026 Mariano Gonzalez&lt;/p&gt;&lt;p xmlns:dct=&#39;http://purl.org/dc/terms/&#39; xmlns:cc=&#39;http://creativecommons.org/ns#&#39; class=&#39;license-text&#39;&gt;&lt;a rel=&#39;cc:attributionURL&#39; property=&#39;dct:title&#39; href=&#39;https://github.com/eschizoid/eschizoid.github.io/tree/main/content&#39;&gt;Content&lt;/a&gt; licensed under &lt;a rel=&#39;license&#39; href=&#39;https://creativecommons.org/licenses/by/4.0&#39;&gt;CC BY 4.0&lt;/a&gt;&lt;/p&gt;</copyright>
		
		
			<lastBuildDate>Mon, 22 Jun 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://mariano-gonzalez.com/tags/object-mapping/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>It is 2026. Why are your object mappings still strings?</title>
				<link>https://mariano-gonzalez.com/posts/post-7/</link>
				<pubDate>Mon, 22 Jun 2026 00:00:00 +0000</pubDate>
				<guid>https://mariano-gonzalez.com/posts/post-7/</guid>
				<description>&lt;p&gt;&lt;p class=&#34;md__image&#34;&gt;&#xA;    &lt;img src=&#34;logo.png&#34; alt=&#34;telescope&#34;  /&gt;&#xA;&lt;/p&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-setup&#34;&gt;The setup&lt;/h2&gt;&#xA;&lt;p&gt;Mapping one Java object to another is routine work in most apps, and&#xA;&lt;a href=&#34;https://mapstruct.org/&#34;&gt;MapStruct&lt;/a&gt;, the standard tool for it, still has you name each field with a&#xA;string: &lt;code&gt;@Mapping(source = &amp;quot;customerName&amp;quot;, target = &amp;quot;fullName&amp;quot;)&lt;/code&gt;. Those two names are what the whole&#xA;mapping turns on, and they are strings: rename the field, and they stay exactly as they were.&lt;/p&gt;&#xA;&lt;p&gt;MapStruct earned its place. Ten years, a huge adopter base, a bug list that converged long ago, and&#xA;it generates genuinely fast code; I reach for it too. Those strings are just the one piece of its&#xA;2014 design that aged badly.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
