{"id":285,"date":"2019-11-01T14:03:49","date_gmt":"2019-11-01T14:03:49","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/project-hygiene\/duplicate-entity-names\/"},"modified":"2022-06-15T06:52:34","modified_gmt":"2022-06-15T06:52:34","slug":"duplicateentityname","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/project-hygiene\/duplicateentityname","title":{"rendered":"Entity names should be unique across the project"},"content":{"rendered":"\n<p>Having names with the same name in a project is allowed by Mendix as long as the entities are in two different modules. However, this makes it difficult to find the right entity for example when retrieving data.<\/p>\n\n\n\n<p><strong>Noncompliant example:<\/strong><\/p>\n\n\n\n<p>Which one is the right one?<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-82.png\" alt=\"\" class=\"wp-image-1048\" width=\"296\" height=\"355\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-82.png 378w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-82-250x300.png 250w\" sizes=\"(max-width: 296px) 100vw, 296px\" \/><\/figure>\n\n\n\n<p><strong>Compliant example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-83.png\" alt=\"\" class=\"wp-image-1049\" width=\"295\" height=\"352\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-83.png 373w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-83-251x300.png 251w\" sizes=\"(max-width: 295px) 100vw, 295px\" \/><\/figure>\n","protected":false},"featured_media":0,"parent":100,"menu_order":9,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-285","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/285"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285"}],"version-history":[{"count":3,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/285\/revisions"}],"predecessor-version":[{"id":1050,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/285\/revisions\/1050"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/100"}],"next":[{"title":"Enumerations should be prefixed correctly","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/project-hygiene\/enumprefix","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/287"}],"prev":[{"title":"Documents in a module should be organized in a good folder structure","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/project-hygiene\/folderstructure","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/638"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}