~/talk

Map me if you can! Painless bean mappings with MapStruct

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [java]
slides:none on file

MapStruct generates Java mapper implementations at compile time from plain interfaces, producing compile-time code generation that yields plain method calls and no reflection so mapping runs fast and debuggable. It detects unmapped target properties, performs built-in conversions (BigDecimal→double, LocalDate↔String with format), supports custom methods and expressions, uses other mappers, integrates via annotationProcessorPath for Maven and IDE plugins (Eclipse/IntelliJ), and outputs type-safe, reflection-free mappings with warnings or errors when mappings are incomplete.

AI-written summary · about

  1. 0:00Start
  2. 1:02The Problem
  3. 2:17How to implement mappings?
  4. 3:16Introducing Map Struct
  5. 12:16Advantages of code generation
  6. 13:35What else is there?
  7. 14:22Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.