{"id":19055848,"url":"https://github.com/danny02/mapstruct-wither-support","last_synced_at":"2026-06-20T22:31:34.984Z","repository":{"id":206418121,"uuid":"716597781","full_name":"Danny02/mapstruct-wither-support","owner":"Danny02","description":"Mapstruct naming strategy that supports withers.","archived":false,"fork":false,"pushed_at":"2024-03-11T19:59:53.000Z","size":112,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-22T01:27:49.150Z","etag":null,"topics":["lombok","mapstruct"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Danny02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-09T13:25:48.000Z","updated_at":"2023-11-09T14:27:48.000Z","dependencies_parsed_at":"2025-01-02T11:24:49.459Z","dependency_job_id":"2b10f64f-1a22-4fe5-9138-e3b3e080bc40","html_url":"https://github.com/Danny02/mapstruct-wither-support","commit_stats":null,"previous_names":["danny02/mapstruct-wither-support"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Danny02/mapstruct-wither-support","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny02%2Fmapstruct-wither-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny02%2Fmapstruct-wither-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny02%2Fmapstruct-wither-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny02%2Fmapstruct-wither-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danny02","download_url":"https://codeload.github.com/Danny02/mapstruct-wither-support/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danny02%2Fmapstruct-wither-support/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283937310,"owners_count":26919457,"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","status":"online","status_checked_at":"2025-11-11T02:00:06.610Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lombok","mapstruct"],"created_at":"2024-11-08T23:47:11.630Z","updated_at":"2025-11-11T22:04:14.923Z","avatar_url":"https://github.com/Danny02.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mapstruct Wither support\n\nMapstruct plugin to support `withX` methods in POJOs.\n\n## Usage\n\nThe library needs to be added to the annotation processor\nclasspath. With Maven, this can be done by configuring the\ncompiler plugin as follows.\n\n```xml\n\u003cplugin\u003e\n    \u003cartifactId\u003emaven-compiler-plugin\u003c/artifactId\u003e\n    \u003cconfiguration\u003e\n        \u003cannotationProcessorPaths\u003e\n            \u003cpath\u003e\n                \u003cgroupId\u003edev.nullzwo\u003c/groupId\u003e\n                \u003cartifactId\u003emapstruct-wither-support\u003c/artifactId\u003e\n                \u003cversion\u003e1.0.0\u003c/version\u003e\n            \u003c/path\u003e\n        \u003c/annotationProcessorPaths\u003e\n    \u003c/configuration\u003e\n\u003c/plugin\u003e\n```\n\n## Problem\n\n[Mapstruct](https://mapstruct.org/) is a library to map instances\nof one class to another similar class.\n\nThe library has to support many different styles of writing such\nPOJOs. Sadly, one common style is not supported.\n\n### Withers\n\nWithers are methods that can be used to change a single field\nof an immutable POJO, by creating a copy.\n\nSee for example Lomboks\n[@With](https://projectlombok.org/features/With).\n\n### Mapstruct default behavior\n\nMapstruct will issue warning by default when this pattern is\nused.\n\n```\njava: Unmapped target properties: \"withName\".\n```\n\nThe reason is that Mapstruct does not understand how to parse\nthe property name from a `withX` method.\n\n### Solution\n\nThis library provides a small\n[AccessorNamingStrategy](https://mapstruct.org/documentation/stable/reference/html/#using-spi)\nthat adds the capability to parse the correct property name from\n`withX` methods.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanny02%2Fmapstruct-wither-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanny02%2Fmapstruct-wither-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanny02%2Fmapstruct-wither-support/lists"}