orika-mapper/orika


Simpler, better and faster Java bean mapping framework http://orika-mapper.github.io/orika-docs/

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.orika-mapper:orika:1.5.0-beta0'
	}
	dependencies {
		implementation("com.github.orika-mapper:orika:1.5.0-beta0")
	}
	<dependency>
	    <groupId>com.github.orika-mapper</groupId>
	    <artifactId>orika</artifactId>
	    <version>1.5.0-beta0</version>
	</dependency>

                            
    libraryDependencies += "com.github.orika-mapper" % "orika" % "1.5.0-beta0"
        
        

                            
    :dependencies [[com.github.orika-mapper/orika "1.5.0-beta0"]]
        
        

Readme


Build Status Join the chat at https://gitter.im/orika-mapper GitHub site Maven Central Javadocs License: Apache 2.0

Orika !

NEW We are pleased to announce the release of Orika 1.5.4 ! This version is available on Maven central repository

What?

Orika is a Java Bean mapping framework that recursively copies (among other capabilities) data from one object to another. It can be very useful when developing multi-layered applications.

Why?

Struggling with hand coded and reflection-based mappers? Orika can be used to simplify the process of mapping between one object layer and another.

Our ambition is to build a comprehensive, efficient and robust Java bean mapping solution. Orika focuses on automating as much as possible, while providing customization through configuration and extension where needed.

Orika enables the developer to :

  • Map complex and deeply structured objects
  • "Flatten" or "Expand" objects by mapping nested properties to top-level properties, and vice versa
  • Create mappers on-the-fly, and apply customizations to control some or all of the mapping
  • Create converters for complete control over the mapping of a specific set of objects anywhere in the object graph--by type, or even by specific property name
  • Handle proxies or enhanced objects (like those of Hibernate, or the various mock frameworks)
  • Apply bi-directional mapping with one configuration
  • Map to instances of an appropriate concrete class for a target abstract class or interface
  • Map POJO properties to Lists, Arrays, and Maps

How?

Orika uses byte code generation to create fast mappers with minimal overhead.

Want to give Orika a try? Check out our new User Guide

Acknowledgements

  • YourKit supports Orika with its full-featured Java Profiler. Take a look at YourKit's leading software products: <a href="http://www.yourkit.com/java/profiler/index.jsp">YourKit Java Profiler</a>. <img src="https://www.yourkit.com/images/yklogo.png" title="YourKit">

  • <strong><a href="https://www.jetbrains.com/?from=Orika">JetBrains</a></strong> kindly provides Orika with a free open-source licence for their IntelliJ IDEA Ultimate edition. <img src="https://camo.githubusercontent.com/a93f3a50613d2f7f26ca3cc70505e16921d6001b/687474703a2f2f7777772e6a6574627261696e732e636f6d2f696d672f6c6f676f732f6c6f676f5f696e74656c6c696a5f696465612e706e67">