{"id":14977527,"url":"https://github.com/akkinoc/orika-spring-boot-starter","last_synced_at":"2025-05-16T11:04:44.123Z","repository":{"id":37831369,"uuid":"75753179","full_name":"akkinoc/orika-spring-boot-starter","owner":"akkinoc","description":"Spring Boot Starter for Orika.","archived":false,"fork":false,"pushed_at":"2025-05-01T06:45:28.000Z","size":883,"stargazers_count":152,"open_issues_count":1,"forks_count":32,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-01T07:34:40.063Z","etag":null,"topics":["java","java-library","kotlin","kotlin-library","mapper","mapping","orika","spring-boot","spring-boot-starter","spring-framework"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akkinoc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"akkinoc"}},"created_at":"2016-12-06T17:07:58.000Z","updated_at":"2025-05-01T06:45:31.000Z","dependencies_parsed_at":"2024-01-27T03:23:49.889Z","dependency_job_id":"e8735b7f-5a19-49d3-ab8d-85b0e073086f","html_url":"https://github.com/akkinoc/orika-spring-boot-starter","commit_stats":{"total_commits":544,"total_committers":5,"mean_commits":108.8,"dds":0.5202205882352942,"last_synced_commit":"498cbe0b57aa4600ac4837556439de31f4205c9e"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkinoc%2Forika-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkinoc%2Forika-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkinoc%2Forika-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkinoc%2Forika-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akkinoc","download_url":"https://codeload.github.com/akkinoc/orika-spring-boot-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518384,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-library","kotlin","kotlin-library","mapper","mapping","orika","spring-boot","spring-boot-starter","spring-framework"],"created_at":"2024-09-24T13:55:49.578Z","updated_at":"2025-05-16T11:04:44.072Z","avatar_url":"https://github.com/akkinoc.png","language":"Kotlin","funding_links":["https://github.com/sponsors/akkinoc"],"categories":[],"sub_categories":[],"readme":"# orika-spring-boot-starter\n\n[![maven central badge]][maven central]\n[![javadoc badge]][javadoc]\n[![release badge]][release]\n[![build badge]][build]\n[![codecov badge]][codecov]\n[![license badge]][license]\n[![sponsor badge]][sponsor]\n\n[maven central]: https://maven-badges.herokuapp.com/maven-central/dev.akkinoc.spring.boot/orika-spring-boot-starter\n[maven central badge]: https://maven-badges.herokuapp.com/maven-central/dev.akkinoc.spring.boot/orika-spring-boot-starter/badge.svg\n[javadoc]: https://javadoc.io/doc/dev.akkinoc.spring.boot/orika-spring-boot-starter\n[javadoc badge]: https://javadoc.io/badge2/dev.akkinoc.spring.boot/orika-spring-boot-starter/javadoc.svg\n[release]: https://github.com/akkinoc/orika-spring-boot-starter/releases\n[release badge]: https://img.shields.io/github/v/release/akkinoc/orika-spring-boot-starter?color=brightgreen\u0026sort=semver\n[build]: https://github.com/akkinoc/orika-spring-boot-starter/actions/workflows/build.yml\n[build badge]: https://github.com/akkinoc/orika-spring-boot-starter/actions/workflows/build.yml/badge.svg\n[codecov]: https://codecov.io/gh/akkinoc/orika-spring-boot-starter\n[codecov badge]: https://codecov.io/gh/akkinoc/orika-spring-boot-starter/branch/main/graph/badge.svg\n[license]: LICENSE.txt\n[license badge]: https://img.shields.io/github/license/akkinoc/orika-spring-boot-starter?color=blue\n[sponsor]: https://github.com/sponsors/akkinoc\n[sponsor badge]: https://img.shields.io/static/v1?logo=github\u0026label=sponsor\u0026message=%E2%9D%A4\u0026color=db61a2\n\n[Spring Boot] Starter for [Orika].\n\n[Spring Boot]: https://spring.io/projects/spring-boot\n[Orika]: https://orika-mapper.github.io/orika-docs\n\n⚠️ Please note that [Orika] has not been maintained for a long time ([orika-mapper/orika#372]).\n\n[orika-mapper/orika#372]: https://github.com/orika-mapper/orika/issues/372\n\n## Features\n\n* Manages MapperFacade in the application context and makes it injectable into your code.\n* Provides an interface to configure MapperFactory.\n* Provides an interface to configure MapperFactoryBuilder.\n* Provides configuration properties to configure MapperFactoryBuilder.\n\n## Dependencies\n\nDepends on:\n\n* Java 17 or 21\n* Kotlin 1.9\n* Spring Boot 3.4\n* Orika 1.5\n\nThe following JVM option is required ([orika-mapper/orika#377]).\n\n[orika-mapper/orika#377]: https://github.com/orika-mapper/orika/issues/377\n\n```console\n--add-opens java.base/java.lang=ALL-UNNAMED\n```\n\n## Usage\n\n### Adding the Dependency\n\nThe artifact is published on [Maven Central Repository][maven central].\nIf you are using Maven, add the following dependency.\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003edev.akkinoc.spring.boot\u003c/groupId\u003e\n    \u003cartifactId\u003eorika-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e${orika-spring-boot-starter.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Injecting the MapperFacade\n\nThe MapperFacade is managed in the application context.\nInject the MapperFacade into your code.\n\nFor example in Java:\n\n```java\nimport ma.glasnost.orika.MapperFacade;\n```\n\n```java\n@Autowired\nprivate MapperFacade orikaMapperFacade;\n```\n\n### Mapping Your Beans\n\nMap your beans using the MapperFacade.\n\nFor example in Java:\n\n```java\n// Maps from PersonSource to PersonDestination\nPersonSource src = new PersonSource(\"John\", \"Smith\", 23);\nSystem.out.println(src);   // =\u003e \"PersonSource(firstName=John, lastName=Smith, age=23)\"\nPersonDestination dest = orikaMapperFacade.map(src, PersonDestination.class);\nSystem.out.println(dest);  // =\u003e \"PersonDestination(givenName=John, sirName=Smith, age=23)\"\n```\n\n## MapperFactory Configuration\n\nIf you need to configure the MapperFactory,\ncreate an instance of OrikaMapperFactoryConfigurer in the application context.\nThe OrikaMapperFactoryConfigurer components are auto-detected and the \"configure\" method is called.\n\nFor example in Java:\n\n```java\nimport dev.akkinoc.spring.boot.orika.OrikaMapperFactoryConfigurer;\nimport ma.glasnost.orika.MapperFactory;\n\n@Component\npublic class PersonMapping implements OrikaMapperFactoryConfigurer {\n    @Override\n    public void configure(MapperFactory orikaMapperFactory) {\n        orikaMapperFactory.classMap(PersonSource.class, PersonDestination.class)\n                .field(\"firstName\", \"givenName\")\n                .field(\"lastName\", \"sirName\")\n                .byDefault()\n                .register();\n    }\n}\n```\n\nSee also the Orika User Guide:\n\n* [Declarative Mapping Configuration](https://orika-mapper.github.io/orika-docs/mappings-via-classmapbuilder.html)\n* [Advanced Mapping Configurations](https://orika-mapper.github.io/orika-docs/advanced-mappings.html)\n\n## MapperFactoryBuilder Configuration\n\nIf you need to configure the MapperFactoryBuilder,\ncreate an instance of OrikaMapperFactoryBuilderConfigurer in the application context.\nThe OrikaMapperFactoryBuilderConfigurer components are auto-detected and the \"configure\" method is called.\n\nFor example in Java:\n\n```java\nimport dev.akkinoc.spring.boot.orika.OrikaMapperFactoryBuilderConfigurer;\nimport ma.glasnost.orika.impl.DefaultMapperFactory.MapperFactoryBuilder;\n\n@Component\npublic class OrikaConfiguration implements OrikaMapperFactoryBuilderConfigurer {\n    @Override\n    public void configure(MapperFactoryBuilder\u003c?, ?\u003e orikaMapperFactoryBuilder) {\n        // Your configuration codes.\n    }\n}\n```\n\nSee also the Orika User Guide:\n\n* [MapperFactory Configuration](https://orika-mapper.github.io/orika-docs/mapper-factory.html)\n\n## Configuration Properties\n\nProvides the following configuration properties.\nThese can be configured by your \"application.yml\", \"application.properties\", etc.\n\n```yaml\n# The configuration properties for Orika.\norika:\n  # Whether to enable auto-configuration.\n  # Defaults to true.\n  enabled: true\n  # Whether to use built-in converters.\n  # See also MapperFactoryBuilder.useBuiltinConverters.\n  # By default, follows Orika's behavior.\n  use-builtin-converters: true\n  # Whether to use auto-mapping.\n  # See also MapperFactoryBuilder.useAutoMapping.\n  # By default, follows Orika's behavior.\n  use-auto-mapping: true\n  # Whether to map nulls.\n  # See also MapperFactoryBuilder.mapNulls.\n  # By default, follows Orika's behavior.\n  map-nulls: true\n  # Whether to dump the current state of the mapping infrastructure objects\n  # upon occurrence of an exception while mapping.\n  # See also MapperFactoryBuilder.dumpStateOnException.\n  # By default, follows Orika's behavior.\n  dump-state-on-exception: false\n  # Whether to favor extension by default in registered class-maps.\n  # See also MapperFactoryBuilder.favorExtension.\n  # By default, follows Orika's behavior.\n  favor-extension: false\n  # Whether full field context should be captured.\n  # See also MapperFactoryBuilder.captureFieldContext.\n  # By default, follows Orika's behavior.\n  capture-field-context: false\n```\n\n## API Reference\n\nPlease refer to the [Javadoc][javadoc].\n\n## Release Notes\n\nPlease refer to the [Releases][release] page.\n\n## License\n\nLicensed under the [Apache License, Version 2.0][license].\n\n## Support the Project\n\nIf this project is useful to you, I appreciate giving a ⭐ star to this repository.\nI would also appreciate if you would consider 💖 [sponsoring][sponsor] as well.\nYour support is my biggest motive force. Thanks ✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkinoc%2Forika-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakkinoc%2Forika-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkinoc%2Forika-spring-boot-starter/lists"}