Mapstruct reference guide MapStruct Beta Reference Guide Table of Contents Preface Introduction Set up Apache Maven Gradle Apache Ant Con ?guration options Using MapStruct on Java De ?ning a mapper Basic mappings Mapping Composition experimental Adding cu

MapStruct Beta Reference Guide Table of Contents Preface Introduction Set up Apache Maven Gradle Apache Ant Con ?guration options Using MapStruct on Java De ?ning a mapper Basic mappings Mapping Composition experimental Adding custom methods to mappers Mapping methods with several source parameters Mapping nested bean properties to current target Updating existing bean instances Mappings with direct ?eld access Using builders Using Constructors Retrieving a mapper The Mappers factory no dependency injection Using dependency injection Injection strategy Data type conversions Implicit type conversions Mapping object references Controlling nested bean mappings Invoking custom mapping method Invoking other mappers Passing the mapping target type to custom mappers Passing context or state objects to custom methods Mapping method resolution Mapping method selection based on quali ?ers Mapping collections Mapping maps C Collection mapping strategies Implementation types used for collection mappings Mapping Streams Mapping Values Mapping enum to enum types Mapping enum-to-String or String-to-enum Custom name transformation Object factories Advanced mapping options Default values and constants Expressions Default Expressions Determining the result type Controlling mapping result for 'null' arguments Controlling mapping result for 'null' properties in bean mappings update mapping methods only Controlling checking result for 'null' properties in bean mapping Source presence checking Exceptions Reusing mapping con ?gurations Mapping con ?guration inheritance Inverse mappings Shared con ?gurations Customizing mappings Mapping customization with decorators Mapping customization with before-mapping and after-mapping methods Using the MapStruct SPI Custom Accessor Naming Strategy Mapping Exclusion Provider Custom Builder Provider Custom Enum Naming Strategy Custom Enum Transformation Strategy Preface This is the reference documentation of MapStruct an annotation processor for generating typesafe performant and dependency-free bean mapping code This guide covers all the functionality provided by MapStruct In case this guide doesn ? t answer all your questions just join the MapStruct Google group to get help You found a typo or other error in this guide Please let us know by opening an issue in the MapStruct GitHub repository or better yet help the community and send a pull request for ?xing Cit This work is licensed under the Creative Commons Attribution- ShareAlike International License Introduction MapStruct is a Java annotation processor for the generation of type-safe bean mapping classes All you have to do is to de ?ne a mapper interface which declares any required mapping methods During compilation MapStruct will generate an implementation of this interface This implementation uses plain Java method invocations for mapping between source and target objects i e no re ection or similar Compared to writing mapping code from hand MapStruct saves time by generating code which is tedious and error- prone to write Following a convention over con ?guration approach MapStruct uses sensible defaults but steps out of your way when it comes to con ?guring or implementing special behavior Compared to dynamic mapping frameworks MapStruct o ?ers the following advantages ? Fast execution by using plain method invocations instead of re ection ? Compile-time type safety Only objects and attributes mapping to each other can be mapped no accidental mapping

Documents similaires
Samsung home theater ht tp33 manuel d x27 utilisation 0 0
Sncc dcs Systèmes numériques de contrôle-commande SNCC par Jacques LE GALLAIS Ingénieur ESIEE École supérieure d ? ingénieurs en électronique et électrotechnique de la Chambre de commerce de Paris Responsable de la Division Applications Schneider Electric 0 0
Yasmina reza le dieu du carnage extrait n03 1 0 0
Pas vers la reussite Sébastien Jasmin Un PAS vers la RÉUSSITE Pour un avenir équilibré CTable des matières Introduction Votre cheminement initial Partie A Les sources d ? énergies Chapitre L ? énergie invisible Chapitre L ? énergie sexuelle Chapitre L ? é 0 0
Comment hacker un compte gmail 0 0
Sword art online tome 1 Sortie des deux premiers tomes de Sword Art Online Après la brève explication de la new Trois grosses croquettes de France j'ai décidé d'approfondir le sujet de l'anime si connu Sword Art Online Comme le titre le sous-entend bien c 0 0
Les exposes 1 Chargée de l ? aménagement du développement et de la gestion du complexe portuaire Tanger Med et de la plateforme industrielle qui lui est adossée l ? Agence Spéciale Tanger Méditerranée TMSA est une société anonyme à directoire et conseil d 0 0
Italia STES ITALIENNES AU MAROC Sociètè A M P AGROBIOS Adresse Rue de jordanieBen Jdia route de Zenata rue Aicha bent haimoun ZI de Ain Sebaa Ville TEL Casablanca Casablanca E- MAIL FAX Responsable Attività Activité Michel SPAGNOLO Fabbricante di ingranag 0 0
Methodologie de l amp 039 explication de texte 0 0
la litterature orale africaine 0 0
  • 151
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise
Partager