{"id":71945,"date":"2018-01-03T16:00:13","date_gmt":"2018-01-03T14:00:13","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=71945"},"modified":"2018-01-03T09:59:34","modified_gmt":"2018-01-03T07:59:34","slug":"power-data-model-projections","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html","title":{"rendered":"Power Up Your Data Model With Projections"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we want to go out to every piece of code.<\/p>\n<p>And like so many other times, Spring comes to the rescue. A little feature called <em>projection<\/em> helps us to map data with only a few lines in an ordinary interface.<\/p>\n<p>In this article, we are going to see a simple example of how we can use projections.<\/p>\n<h2>The Basics<\/h2>\n<p>OK, let\u2019s set the scene. Imagine we have the following entity:<\/p>\n<pre class=\"brush:java\">@Builder\r\n@Data\r\n@NoArgsConstructor\r\n@AllArgsConstructor\r\n@Entity\r\n@Table\r\n@EqualsAndHashCode(doNotUseGetters = true)\r\n@ToString(doNotUseGetters = true)\r\npublic class User implements Serializable {\r\n \r\n @Id\r\n @SequenceGenerator(name = \"user_seq\", sequenceName = \"user_seq\")\r\n @GeneratedValue(strategy = GenerationType.IDENTITY, generator = \"user_seq\")\r\n private Long id;\r\n \r\n @Basic\r\n private String username;\r\n \r\n @Basic\r\n private String salt;\r\n \r\n @Basic\r\n private String password;\r\n \r\n @Basic\r\n private String firstName;\r\n \r\n @Basic\r\n private String lastName;\r\n}<\/pre>\n<p>Some explanation might be helpful here: Let\u2019s have a look at the annotations. I am lazy, honestly, so <a href=\"https:\/\/projectlombok.org\">Lombok<\/a> is right up my alley. Lombok gives us a nice declarative way to say we need:<\/p>\n<ul>\n<li>a nice builder interface to create the bean (<code>@Builder<\/code>)<\/li>\n<li>Getters and setter (<code>@Data<\/code>)<\/li>\n<li>a default constructor (<code>@NoArgsConstructor<\/code>)<\/li>\n<li>one more constructor with arguments for all fields (<code>@AllArgsConstructor<\/code>)<\/li>\n<li><code>equals()<\/code> and <code>hashCode()<\/code>, but please use the fields, not the getters (<code>@EqualsAndHashCode(doNotUseGetters = true)<\/code>)<\/li>\n<li><code>toString()<\/code>; again, use the fields (<code>@ToString(doNotUseGetter = true)<\/code>)<\/li>\n<\/ul>\n<p>The remaining annotations (<code>@Entity<\/code> and <code>@Table<\/code>) are good old JPA.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>Right, so, we have a nice entity. What\u2019s the issue?<\/p>\n<h2>Get Data The Traditional way<\/h2>\n<p>Let\u2019s have a look at this repository:<\/p>\n<pre class=\"brush:java\">@Repository\r\npublic interface UserRepository extends JpaRepository&lt;User, Long&gt; {\r\n\r\n}<\/pre>\n<p>The above code provides us with a minimal set of CRUD methods. One is <code>getOne(Long id)<\/code>. Good, isn\u2019t it?<\/p>\n<p>Well, the correct answer must be: It depends! Why? Because this returns the whole entity, including the salt and the hashed password. This is very sensitive information. Especially the salt should never be available to the outside world.<\/p>\n<p>In order to get this information out of the resulting entity, we would have to do a lot of manual work. Just from the top of my head, we should: * create a new bean * implement a mapper to get from our entity to the new bean * make sure every time we deal with that entity, we also map it * getting headaches when realising there are also multiple results possible.<\/p>\n<h2>Return The Minimum Necessary<\/h2>\n<p>Thankfully, Spring safes the day. A little feature called <em>Projections<\/em> lets us define the mapping in a declarative way. Such an interface could look like that:<\/p>\n<pre class=\"brush:java\">public interface UserProjection {\r\n \r\n @Value(\"#{target.getUsername()}\")\r\n String getUsername();\r\n \r\n @Value(\"#{target.getFirstName()}\")\r\n String getFirstName();\r\n \r\n @Value(\"#{target.getLastName()}\")\r\n String getLastName();\r\n}<\/pre>\n<p>Spring will replace <code>target<\/code> with the entity we are currently dealing with. In other words, <code>target<\/code> will be an instance of <code>User<\/code>.<\/p>\n<p>The only thing we have to do now is something like this:<\/p>\n<pre class=\"brush:java\">@Repository\r\npublic interface UserRepository extends JpaRepository&lt;User, Long&gt; {\r\n \r\n UserProjection findById(Long id);\r\n \r\n List&lt;UserProjection&gt; findAllUser();\r\n}<\/pre>\n<p>Now, every time we call <code>findById()<\/code>, we will get an instance of <code>UserProjection<\/code>. No leakage of our salt or password hash possible! Even better, we can use the same procedure for methods with multiple results.<\/p>\n<h2>Conclusion<\/h2>\n<p>We can save a lot of code and pain with Spring Projections. And the <code>@Value()<\/code> definitions can get as complex as we need it. In my current project, for example, this saves my team a lot of boilerplate code when we map an \u201cinteresting\u201d legacy database design into easier data models.<\/p>\n<p>If you want to give this a spin, you can find a simple example application on <a href=\"https:\/\/github.com:steinhauer-software\/javaadvent2018-spring-projection\">GitHub<\/a>.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Java Code Geeks with permission by Holger Steinhauer, partner at our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\" target=\"_blank\" rel=\"noopener\">JCG program<\/a>. See the original article here: <a href=\"https:\/\/www.javaadvent.com\/2017\/12\/power-data-model-projections.html\" target=\"_blank\" rel=\"noopener\">Power Up Your Data Model With Projections<\/a><\/p>\n<p>Opinions expressed by Java Code Geeks contributors are their own.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we want to go out to every piece of code. And like so many other times, Spring comes to the rescue. A little feature called projection helps us to map data with &hellip;<\/p>\n","protected":false},"author":11978,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[30],"class_list":["post-71945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-spring"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Power Up Your Data Model With Projections - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Introduction Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Power Up Your Data Model With Projections - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Introduction Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-03T14:00:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Holger Steanhauer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Holger Steanhauer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html\"},\"author\":{\"name\":\"Holger Steanhauer\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/7bb79333b57ce6cb8913053bea1566ec\"},\"headline\":\"Power Up Your Data Model With Projections\",\"datePublished\":\"2018-01-03T14:00:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html\"},\"wordCount\":529,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"Spring\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html\",\"name\":\"Power Up Your Data Model With Projections - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2018-01-03T14:00:13+00:00\",\"description\":\"Introduction Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"spring-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/01\\\/power-data-model-projections.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Power Up Your Data Model With Projections\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/7bb79333b57ce6cb8913053bea1566ec\",\"name\":\"Holger Steanhauer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc8117fbdf2fc491d3aea927500d57b28d66caee48b06a58e5b58f3ba0a850c2?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc8117fbdf2fc491d3aea927500d57b28d66caee48b06a58e5b58f3ba0a850c2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc8117fbdf2fc491d3aea927500d57b28d66caee48b06a58e5b58f3ba0a850c2?s=96&d=mm&r=g\",\"caption\":\"Holger Steanhauer\"},\"description\":\"He's a passionate developer with more than 12 years of experience and he loves exploring all kinds of tech and languages \u2013 at work and in his free time.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/holger-steinhauer\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Power Up Your Data Model With Projections - Java Code Geeks","description":"Introduction Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html","og_locale":"en_US","og_type":"article","og_title":"Power Up Your Data Model With Projections - Java Code Geeks","og_description":"Introduction Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we","og_url":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2018-01-03T14:00:13+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Holger Steanhauer","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Holger Steanhauer","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html"},"author":{"name":"Holger Steanhauer","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/7bb79333b57ce6cb8913053bea1566ec"},"headline":"Power Up Your Data Model With Projections","datePublished":"2018-01-03T14:00:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html"},"wordCount":529,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["Spring"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html","url":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html","name":"Power Up Your Data Model With Projections - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2018-01-03T14:00:13+00:00","description":"Introduction Data models can be tricky. Modelling can be even harder. Sometimes information that should go into a database table isn\u2019t necessarily what we","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","width":150,"height":150,"caption":"spring-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2018\/01\/power-data-model-projections.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Power Up Your Data Model With Projections"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/7bb79333b57ce6cb8913053bea1566ec","name":"Holger Steanhauer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fc8117fbdf2fc491d3aea927500d57b28d66caee48b06a58e5b58f3ba0a850c2?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fc8117fbdf2fc491d3aea927500d57b28d66caee48b06a58e5b58f3ba0a850c2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc8117fbdf2fc491d3aea927500d57b28d66caee48b06a58e5b58f3ba0a850c2?s=96&d=mm&r=g","caption":"Holger Steanhauer"},"description":"He's a passionate developer with more than 12 years of experience and he loves exploring all kinds of tech and languages \u2013 at work and in his free time.","url":"https:\/\/www.javacodegeeks.com\/author\/holger-steinhauer"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/71945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/11978"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=71945"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/71945\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=71945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=71945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=71945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}