{"id":112812,"date":"2022-02-10T07:00:00","date_gmt":"2022-02-10T05:00:00","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=112812"},"modified":"2022-02-08T14:34:37","modified_gmt":"2022-02-08T12:34:37","slug":"calculations-in-quarkus-qute-using-atomicinteger","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html","title":{"rendered":"Calculations in Quarkus Qute using AtomicInteger"},"content":{"rendered":"<p>Quarkus&#8217; Qute Templating Engine is very handy for creating server-side rendered pages. Besides the regular loops and control structures, there\u2019s also a possibility to set and update variables, at least with a small trick. In the following, we\u2019ll see how to do some arithmetic calculations using Java\u2019s <code>AtomicInteger<\/code>.<\/p>\n<p>Usually, you can invoke methods of objects that are passed to Qute, but you can\u2019t easily update the variables itself. There\u2019s the <code>{#let}<\/code> directive to define variables but in order to update values we need to use types that provide methods to do so, unlike Java primitives.<\/p>\n<p>Imagine we\u2019d like to have multiple nested loops and would like some global counter:<\/p>\n<pre class=\"wp-block-preformatted brush:java\">{#let counter=math:atomicInt(1)}\n{#for entry in entries}\n    &lt;li&gt;{counter.getAndIncrement()}. {entry_count}.\n        {entry.title} {#if entry_hasNext}OR{\/}&lt;\/li&gt;\n{\/for}\n\n{#for i in 5}\n    &lt;li&gt;{counter.getAndIncrement()}. {i_count}.\n        Entry number {i}{#if i_hasNext},{\/}&lt;\/li&gt;\n{\/for}\n{\/let}<\/pre>\n<p>What happens is that the <code>counter<\/code> variable is of type <code>AtomicInteger<\/code> and the <code>getAndIncrement<\/code> method returns and changes the internal numeric value. We provide the instance via a template extension method:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"wp-block-preformatted brush:java\">@TemplateExtension(namespace = \"math\")\nstatic AtomicInteger atomicInt(int initial) {\n    return new AtomicInteger(initial);\n}<\/pre>\n<p>The result looks like follows:<\/p>\n<ul class=\"wp-block-list\">\n<li>1. 1. This is an entry OR<\/li>\n<li>2. 2. This is another entry OR<\/li>\n<li>3. 3. This is yet another entry<\/li>\n<li>4. 1. Entry number 1,<\/li>\n<li>5. 2. Entry number 2,<\/li>\n<li>6. 3. Entry number 3,<\/li>\n<li>7. 4. Entry number 4,<\/li>\n<li>8. 5. Entry number 5<\/li>\n<\/ul>\n<p>As an alternative, you can also initialize and provide the <code>AtomicInteger<\/code> in your Java code:<\/p>\n<pre class=\"wp-block-preformatted brush:java\">\/\/ ... in your Qute REST controller\nreturn template.data(\"entries\", entries, \"counter\", new AtomicInteger(1));<\/pre>\n<p>Then you can get rid of the <code>{#let}<\/code> directive:<\/p>\n<pre class=\"wp-block-preformatted brush:java\">&lt;ul&gt;\n{#for entry in entries}\n    &lt;li&gt;{counter.getAndIncrement()}. {entry_count}.\n        {entry.title} {#if entry_hasNext}OR{\/}&lt;\/li&gt;\n{\/for}\n\n{#for i in 5}\n    &lt;li&gt;{counter.getAndIncrement()}. {i_count}.\n        Entry number {i}{#if i_hasNext},{\/}&lt;\/li&gt;\n{\/for}\n&lt;\/ul&gt;<\/pre>\n<p>These examples are using Quarkus version <code>2.7.0.Final<\/code>.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>\n<p>Published on Java Code Geeks with permission by Sebastian Daschner, partner at our <a href=\"\/\/www.javacodegeeks.com\/join-us\/jcg\/\" target=\"_blank\" rel=\"noopener\">JCG program<\/a>. See the original article here: <a href=\"https:\/\/blog.sebastian-daschner.com\/entries\/calculations-in-qute-with-atomicinteger\" target=\"_blank\" rel=\"noopener\">Calculations in Quarkus Qute using AtomicInteger<\/a><\/p>\n<p>Opinions expressed by Java Code Geeks contributors are their own.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Quarkus&#8217; Qute Templating Engine is very handy for creating server-side rendered pages. Besides the regular loops and control structures, there\u2019s also a possibility to set and update variables, at least with a small trick. In the following, we\u2019ll see how to do some arithmetic calculations using Java\u2019s AtomicInteger. Usually, you can invoke methods of objects &hellip;<\/p>\n","protected":false},"author":7568,"featured_media":112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[1975],"class_list":["post-112812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-quarkus"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Calculations in Quarkus Qute using AtomicInteger - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Interested to learn about AtomicInteger? Check our article explaining how to do Calculations in Quarkus Qute using AtomicInteger.\" \/>\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\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calculations in Quarkus Qute using AtomicInteger - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Interested to learn about AtomicInteger? Check our article explaining how to do Calculations in Quarkus Qute using AtomicInteger.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.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=\"2022-02-10T05:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-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=\"Sebastian Daschner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DaschnerS\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sebastian Daschner\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html\"},\"author\":{\"name\":\"Sebastian Daschner\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/c0cd4930fe5f0a7be847ee87863ea665\"},\"headline\":\"Calculations in Quarkus Qute using AtomicInteger\",\"datePublished\":\"2022-02-10T05:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html\"},\"wordCount\":241,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"keywords\":[\"quarkus\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html\",\"name\":\"Calculations in Quarkus Qute using AtomicInteger - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"datePublished\":\"2022-02-10T05:00:00+00:00\",\"description\":\"Interested to learn about AtomicInteger? Check our article explaining how to do Calculations in Quarkus Qute using AtomicInteger.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"java-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2022\\\/02\\\/calculations-in-quarkus-qute-using-atomicinteger.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\":\"Calculations in Quarkus Qute using AtomicInteger\"}]},{\"@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\\\/c0cd4930fe5f0a7be847ee87863ea665\",\"name\":\"Sebastian Daschner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5f7cd4d32ab6265242b5c9fdb10e6be68a6a583d8863f746fd9852b8149bbd9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5f7cd4d32ab6265242b5c9fdb10e6be68a6a583d8863f746fd9852b8149bbd9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5f7cd4d32ab6265242b5c9fdb10e6be68a6a583d8863f746fd9852b8149bbd9?s=96&d=mm&r=g\",\"caption\":\"Sebastian Daschner\"},\"description\":\"Sebastian Daschner is a self-employed Java consultant and trainer. He is the author of the book 'Architecting Modern Java EE Applications'. Sebastian is a Java Champion, Oracle Developer Champion and JavaOne Rockstar.\",\"sameAs\":[\"https:\\\/\\\/blog.sebastian-daschner.com\\\/\",\"https:\\\/\\\/x.com\\\/DaschnerS\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/sebastian-daschner\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Calculations in Quarkus Qute using AtomicInteger - Java Code Geeks","description":"Interested to learn about AtomicInteger? Check our article explaining how to do Calculations in Quarkus Qute using AtomicInteger.","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\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html","og_locale":"en_US","og_type":"article","og_title":"Calculations in Quarkus Qute using AtomicInteger - Java Code Geeks","og_description":"Interested to learn about AtomicInteger? Check our article explaining how to do Calculations in Quarkus Qute using AtomicInteger.","og_url":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2022-02-10T05:00:00+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","type":"image\/jpeg"}],"author":"Sebastian Daschner","twitter_card":"summary_large_image","twitter_creator":"@DaschnerS","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Sebastian Daschner","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html"},"author":{"name":"Sebastian Daschner","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/c0cd4930fe5f0a7be847ee87863ea665"},"headline":"Calculations in Quarkus Qute using AtomicInteger","datePublished":"2022-02-10T05:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html"},"wordCount":241,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","keywords":["quarkus"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html","url":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html","name":"Calculations in Quarkus Qute using AtomicInteger - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","datePublished":"2022-02-10T05:00:00+00:00","description":"Interested to learn about AtomicInteger? Check our article explaining how to do Calculations in Quarkus Qute using AtomicInteger.","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","width":150,"height":150,"caption":"java-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2022\/02\/calculations-in-quarkus-qute-using-atomicinteger.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":"Calculations in Quarkus Qute using AtomicInteger"}]},{"@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\/c0cd4930fe5f0a7be847ee87863ea665","name":"Sebastian Daschner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c5f7cd4d32ab6265242b5c9fdb10e6be68a6a583d8863f746fd9852b8149bbd9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c5f7cd4d32ab6265242b5c9fdb10e6be68a6a583d8863f746fd9852b8149bbd9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c5f7cd4d32ab6265242b5c9fdb10e6be68a6a583d8863f746fd9852b8149bbd9?s=96&d=mm&r=g","caption":"Sebastian Daschner"},"description":"Sebastian Daschner is a self-employed Java consultant and trainer. He is the author of the book 'Architecting Modern Java EE Applications'. Sebastian is a Java Champion, Oracle Developer Champion and JavaOne Rockstar.","sameAs":["https:\/\/blog.sebastian-daschner.com\/","https:\/\/x.com\/DaschnerS"],"url":"https:\/\/www.javacodegeeks.com\/author\/sebastian-daschner"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/112812","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\/7568"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=112812"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/112812\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=112812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=112812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=112812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}