<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1088280253179137045</id><updated>2026-01-30T17:56:10.973+05:30</updated><category term="Computer"/><category term="Object Oriented Programming"/><category term="Programming"/><category term="Python"/><category term="Database"/><category term="DBMS"/><category term="Network"/><category term="Access"/><category term="Networking"/><category term="Motivational"/><category term="Internet"/><category term="Networks"/><category term="CBSE computer application"/><category term="MS Office"/><category term="OOP"/><category term="Data"/><category term="Addition"/><category term="Architecture"/><category term="Control Flow Statement"/><category term="Escape Sequence"/><category term="Intranet"/><category term="Java sets"/><category term="Network Security"/><category term="Operators"/><category term="QBAsic solved questions"/><category term="Qbasic"/><category term="RDBMS"/><category term="Time Management"/><category term="Tokens"/><category term="Topology"/><category term="Transmission Media"/><category term="Types of DBMS"/><category term="computer syllabus 2020-21"/><category term="curriculum computer"/><category term="data types"/><category term="filmora 9"/><category term="html"/><category term="html tags"/><category term="java"/><category term="kafka"/><category term="loop"/><category term="microservice"/><category term="software"/><category term="spring wolf"/><category term="springwolf"/><title type='text'>IRIS EDUCATION</title><subtitle type='html'>This blog is made specially for students those who have selected Computer Application (165) as a subject in CBSE board exam. It includes chapter wise notes, videos, assignments, etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>87</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-2318984020154873622</id><published>2025-06-04T13:55:00.003+05:30</published><updated>2025-06-04T13:55:14.320+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="kafka"/><category scheme="http://www.blogger.com/atom/ns#" term="microservice"/><category scheme="http://www.blogger.com/atom/ns#" term="spring wolf"/><category scheme="http://www.blogger.com/atom/ns#" term="springwolf"/><title type='text'>Spring wolf documentation</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Springwolf documentation for managing the Kafka based communication between microservices.&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: rgba(0, 0, 0, 0.05); color: #131313; font-family: Roboto, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;&quot;&gt;In this video, we&#39;ll show you how to auto-generate AsyncAPI documentation for your Kafka-based Event-Driven Microservices using SpringWolf + Spring Boot – with almost zero configuration!

✅ What is SpringWolf and how it helps to developer community 
✅ How SpringWolf integrates with Spring Boot
✅ Auto-generating AsyncAPI YAML/JSON docs
✅ Kafka event listener mapping
✅ Debugging and visualizing event flows
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: rgba(0, 0, 0, 0.05); color: #131313; font-family: Roboto, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/Guc4BfPuIio&quot; width=&quot;320&quot; youtube-src-id=&quot;Guc4BfPuIio&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgba(0, 0, 0, 0.05); color: #131313; font-family: Roboto, Arial, sans-serif; font-size: 14px; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/2318984020154873622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2025/06/spring-wolf-documentation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/2318984020154873622'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/2318984020154873622'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2025/06/spring-wolf-documentation.html' title='Spring wolf documentation'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/Guc4BfPuIio/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-5465734287457233151</id><published>2025-06-04T13:52:00.002+05:30</published><updated>2025-06-04T13:52:18.284+05:30</updated><title type='text'>Microservice communication with kafka broker</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Microservice communication with kafka broker in Event driven architecture&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This article display how the communication takes place between two or more microservice. For communicating between the microservice you can use any message broker here in this example we are using the Kafka broker. For communication with the microservice we have created two topics TOPIC 1 and TOPIC 2.&amp;nbsp;&lt;/div&gt;&lt;div&gt;TOPIC 1 will be produced by the MS_1 and will be consumed by the MS_2 and TOPIC 2 will be produced by the MS_2 and will be consumed by the MS_1.&lt;/div&gt;&lt;div&gt;For detailed explanation follow the below video link.&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=TrKl-vXHZhM&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/TrKl-vXHZhM&quot; width=&quot;320&quot; youtube-src-id=&quot;TrKl-vXHZhM&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/5465734287457233151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2025/06/microservice-communication-with-kafka.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/5465734287457233151'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/5465734287457233151'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2025/06/microservice-communication-with-kafka.html' title='Microservice communication with kafka broker'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/TrKl-vXHZhM/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-1313849313076431257</id><published>2023-11-16T17:18:00.001+05:30</published><updated>2023-11-16T17:18:22.200+05:30</updated><title type='text'>java 8 setup</title><content type='html'>&lt;p&gt;&amp;nbsp;java 8 setup file&amp;nbsp;&lt;a href=&quot;https://drive.google.com/file/d/14U8DWtxRQGqmN0ZgnkFRWlEGs1tmVfJe/view?usp=drive_link&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/1313849313076431257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2023/11/java-8-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/1313849313076431257'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/1313849313076431257'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2023/11/java-8-setup.html' title='java 8 setup'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-5110717879239731364</id><published>2023-03-15T19:37:00.001+05:30</published><updated>2023-03-15T19:37:08.391+05:30</updated><title type='text'>Thymeleaf function on button click with multiple parameter</title><content type='html'>&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;how you can write the onclick attribute using Thymeleaf
syntax:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;&amp;lt;button &lt;/span&gt;&lt;span class=&quot;hljs-built_in&quot; style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; background-color: black; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #e9950c; font-family: &amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; background-color: black; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #00a67d; font-family: &amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;&quot;button&quot;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt; th:onclick=&lt;/span&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; background-color: black; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #00a67d; font-family: &amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;&quot;|rejectSalaryPayment(&#39;&lt;span class=&quot;hljs-variable&quot; style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #df3079;&quot;&gt;${response.uuid}&lt;/span&gt;&#39;, &lt;span class=&quot;hljs-variable&quot; style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(59,130,246,0.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #df3079;&quot;&gt;${dto.id}&lt;/span&gt;)|&quot;&lt;/span&gt;&lt;span style=&quot;background-color: black; color: white; font-family: &amp;quot;Söhne Mono&amp;quot;, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;&amp;gt;Reject Salary Payment&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;This assumes that the &lt;b&gt;response.uuid&lt;/b&gt; and &lt;b&gt;dto.id&lt;/b&gt;
variables are available in the current Thymeleaf context. If they are not, you
will need to provide the appropriate values or expressions to evaluate them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;Also note that the &lt;b&gt;onclick&lt;/b&gt; attribute is written using
the Thymeleaf expression syntax (&lt;b&gt;|...|&lt;/b&gt;), which allows you to include
string literals and variable expressions within the same attribute value.&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/5110717879239731364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2023/03/thymeleaf-function-on-button-click-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/5110717879239731364'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/5110717879239731364'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2023/03/thymeleaf-function-on-button-click-with.html' title='Thymeleaf function on button click with multiple parameter'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-7463075864745559373</id><published>2023-03-10T12:30:00.002+05:30</published><updated>2023-03-10T12:33:30.492+05:30</updated><title type='text'>Why jar file or application takes lot of time to execute</title><content type='html'>&lt;p class=&quot;MsoNormal&quot;&gt;There could be several reasons why your system is taking a
lot of time to execute a jar file or application. Here are a few possible
causes and solutions:&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Insufficient hardware resources: If your system
does not have enough hardware resources such as RAM, CPU or storage, it can
take longer for the jar file or application to execute. To resolve this issue,
you can upgrade your hardware or try closing any unnecessary applications that
are running in the background.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Network issues: If the jar file or application
relies on network resources, slow network connectivity can lead to delays in
execution. To resolve this issue, you can try checking your network connectivity,
ensure that your internet connection is stable and that the network is not
congested.&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;text-indent: -0.25in;&quot;&gt;Large file size: If the jar file or application
is large, it can take longer to load and execute. To resolve this issue, you
can try compressing the file or splitting it into smaller files.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Compatibility issues: If the jar file or
application is not compatible with your system, it can lead to delays in
execution. Ensure that you have installed all the necessary software
dependencies for the jar file or application to run.&lt;/li&gt;&lt;li&gt;Anti-virus or security software: Anti-virus or
security software can slow down the execution of jar files or applications. You
can try disabling them temporarily to see if it improves the performance.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;











&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;6.&lt;span style=&quot;font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 7pt; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Overall, it&#39;s important to identify the specific
cause of the slow execution of your jar file or application, so you can take
the appropriate steps to resolve it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/7463075864745559373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2023/03/why-jar-file-or-application-takes-lot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/7463075864745559373'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/7463075864745559373'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2023/03/why-jar-file-or-application-takes-lot.html' title='Why jar file or application takes lot of time to execute'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-3791527565484799626</id><published>2023-03-01T13:18:00.000+05:30</published><updated>2023-03-01T13:18:02.950+05:30</updated><title type='text'>Java Reflection Example</title><content type='html'>&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;br&gt;&lt;br&gt;
    &lt;h2&gt;Filter an array by comparing another array&lt;/h2&gt;
    &lt;textarea name=&quot;txt1&quot; id=&quot;txt1&quot; cols=&quot;90&quot; rows=&quot;10&quot; 
    style=&quot;background-color: black;color: white;font-family: Consolas;&quot; disabled&gt;
        @PatchMapping(&quot;/{id}&quot;)
        public Product updateProductFields(@PathVariable int id, @RequestBody Map&lt;String, Object&gt; fields){
            retun updateProductByFileds(id, fields);
        }

        public Product updateProductByFileds(int id, Map&lt;String, Object&gt; fields){
            Product existingProduct = repository.findById(id).get();
            fields.forEach((key, value) -&gt; {
                Field field = ReflectionUtils.findField(Product.class, key);
                field.setAccessible(true);
                ReflectionUtils.setFiled(field, existingProduct, value);
            });
            retun repository.save(existingProduct);
        }
    &lt;/textarea&gt;
&lt;/body&gt;
&lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/3791527565484799626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2023/03/java-reflection-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/3791527565484799626'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/3791527565484799626'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2023/03/java-reflection-example.html' title='Java Reflection Example'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-8063186067420614305</id><published>2023-02-27T10:51:00.003+05:30</published><updated>2023-02-27T10:51:28.899+05:30</updated><title type='text'>Create Composite Key in SQL</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;What is a composite key?&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #202124; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;A composite key in SQL can be defined as&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #202124; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;a combination of multiple columns&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #202124; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;, which are used to identify all the rows involved uniquely. Even though a single column can&#39;t identify any row uniquely, a combination of over one column can uniquely specify any record.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #202124; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;How to create a composite key?&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgsWyG3MMLxWVGMTev8FLbflG3r73Rrmrv9ZC0beBosGrVw11fvpOOchv171iEhsXYps2k0KqIKliTQgqzNwSzdEEomgoUM8rxS7GKwN7CFso-R12aCtVg_2wFqiYqFXtCyaytU9rM030SOFGfBVJZZRqUgWMg5dU5NB4oDBNBO0II5fOfUm5lH_oOELw&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;846&quot; data-original-width=&quot;1112&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgsWyG3MMLxWVGMTev8FLbflG3r73Rrmrv9ZC0beBosGrVw11fvpOOchv171iEhsXYps2k0KqIKliTQgqzNwSzdEEomgoUM8rxS7GKwN7CFso-R12aCtVg_2wFqiYqFXtCyaytU9rM030SOFGfBVJZZRqUgWMg5dU5NB4oDBNBO0II5fOfUm5lH_oOELw&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;EG:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjSJOI_r8KFYF8WTDaNHB0PStuGzNeG3hMG31agVstajGckYbpDSTpTEywN2wnPTXybxHeWHEq_tZD-aAHKOGSx3PtsZ7qlFS_EFgA3vEmKZHvIe-ex-RsKg5PFz7mid0S9-ejDcBn-HT2uubaCgaG31yohEP5psifG5HYx8rkTfo5haiswoyvUrHiR9A&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;535&quot; data-original-width=&quot;1764&quot; height=&quot;97&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjSJOI_r8KFYF8WTDaNHB0PStuGzNeG3hMG31agVstajGckYbpDSTpTEywN2wnPTXybxHeWHEq_tZD-aAHKOGSx3PtsZ7qlFS_EFgA3vEmKZHvIe-ex-RsKg5PFz7mid0S9-ejDcBn-HT2uubaCgaG31yohEP5psifG5HYx8rkTfo5haiswoyvUrHiR9A&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/8063186067420614305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2023/02/create-composite-key-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8063186067420614305'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8063186067420614305'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2023/02/create-composite-key-in-sql.html' title='Create Composite Key in SQL'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgsWyG3MMLxWVGMTev8FLbflG3r73Rrmrv9ZC0beBosGrVw11fvpOOchv171iEhsXYps2k0KqIKliTQgqzNwSzdEEomgoUM8rxS7GKwN7CFso-R12aCtVg_2wFqiYqFXtCyaytU9rM030SOFGfBVJZZRqUgWMg5dU5NB4oDBNBO0II5fOfUm5lH_oOELw=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-1969363911879875056</id><published>2023-02-21T16:42:00.002+05:30</published><updated>2023-02-21T16:42:10.920+05:30</updated><title type='text'>Access remote branch git</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span style=&quot;color: var(--black-800); font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;$ git branch -v -a&lt;/span&gt;&lt;/p&gt;&lt;p&gt;main&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;99557ef source code&lt;/p&gt;&lt;p&gt;remotes/origin/HEAD&amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; origin/main&lt;/p&gt;&lt;p&gt;remotes/origin/NewDesign ced7cac New Design&lt;/p&gt;&lt;p&gt;remotes/origin/main&amp;nbsp; &amp;nbsp; &amp;nbsp; 99557ef source code&lt;/p&gt;&lt;pre style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;$ git switch -c NewDesign origin/NewDesign&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;This will create NewDesign branch in your local machine&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/1969363911879875056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2023/02/access-remote-branch-git.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/1969363911879875056'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/1969363911879875056'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2023/02/access-remote-branch-git.html' title='Access remote branch git'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-2017169963602215203</id><published>2022-12-10T20:22:00.001+05:30</published><updated>2022-12-10T20:22:43.323+05:30</updated><title type='text'>Intl.RelativeTimeFormat in JavaScript</title><content type='html'>&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;Generate credit card last 4 digit with masked number&lt;/h2&gt;
&lt;textarea cols=&quot;90&quot; disabled=&quot;&quot; id=&quot;txt1&quot; name=&quot;txt1&quot; rows=&quot;10&quot; style=&quot;background-color: black; color: white; font-family: Consolas;&quot;&gt;  dateString2(num:number){
  const f = new Intl.RelativeTimeFormat(&quot;en-us&quot;, {
  style: &#39;long&#39;,
  numeric: &#39;auto&#39;
  });
  // seconds | days | months | years
  let timeLeft = f.format(num, &quot;seconds&quot;);
  return timeLeft;
}
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/2017169963602215203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/12/intlrelativetimeformat-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/2017169963602215203'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/2017169963602215203'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/12/intlrelativetimeformat-in-javascript.html' title='Intl.RelativeTimeFormat in JavaScript'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-5238302782665553836</id><published>2022-12-10T19:36:00.002+05:30</published><updated>2022-12-10T19:36:20.619+05:30</updated><title type='text'>Generate credit card last 4 digit with masked number in Typescript</title><content type='html'>&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;Generate credit card last 4 digit with masked number&lt;/h2&gt;
&lt;textarea cols=&quot;90&quot; disabled=&quot;&quot; id=&quot;txt1&quot; name=&quot;txt1&quot; rows=&quot;10&quot; style=&quot;background-color: black; color: white; font-family: Consolas;&quot;&gt;  creditCardLast4DigitNo() {
  const fullNumber = &quot;1234567812345678&quot;;
  const last4Digit = fullNumber.slice(-4);
  console.log(&quot;Last 4 digit number: &quot;, last4Digit);
  const maskedDigit = last4Digit.padStart(fullNumber.length,&#39;*&#39;);
  console.log(maskedDigit);
  return maskedDigit;
}
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/5238302782665553836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/12/generate-credit-card-last-4-digit-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/5238302782665553836'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/5238302782665553836'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/12/generate-credit-card-last-4-digit-with.html' title='Generate credit card last 4 digit with masked number in Typescript'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-6269938201427169483</id><published>2022-10-25T14:33:00.008+05:30</published><updated>2022-10-25T14:33:56.123+05:30</updated><title type='text'>How to insert foreign key on column when data is present in table</title><content type='html'>&lt;p&gt;&amp;nbsp;SET FOREIGN_KEY_CHECKS=0;&lt;/p&gt;&lt;p&gt;ALTER TABLE &amp;lt;TABLE_NAME&amp;gt; ADD FOREIGN KEY (COLUMN_NAME) REFERENCES TABLE_NAME(id)&lt;/p&gt;&lt;p&gt;Eg - Alter table vivagame11.matches add foreign key (leagueid) references vivagame11.league(id)&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/6269938201427169483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/10/how-to-insert-foreign-key-on-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/6269938201427169483'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/6269938201427169483'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/10/how-to-insert-foreign-key-on-column.html' title='How to insert foreign key on column when data is present in table'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-868295819697035103</id><published>2022-10-25T13:19:00.007+05:30</published><updated>2022-10-25T13:19:37.907+05:30</updated><title type='text'>Last record and Last 10 records using JpaHibernate</title><content type='html'>&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;View the last 10 records&lt;/span&gt;&lt;/h4&gt;&lt;pre class=&quot;lang-sql s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-sql&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;List&lt;span class=&quot;hljs-operator&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-keyword); font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;User&lt;/span&gt;&lt;span class=&quot;hljs-operator&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt; findFirst10ByUsername(String username);&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;lang-sql s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-sql&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); text-align: left; vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-sql&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;View last record using JpaHibernate&lt;/span&gt;&lt;/code&gt;&lt;/h4&gt;&lt;pre class=&quot;lang-sql s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-size: var(--fs-body1); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-sql&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;lang-sql s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-sql&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;pre class=&quot;default s-code-block&quot; style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: var(--lh-md); margin-bottom: calc(var(--s-prose-spacing) + 0.4em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-csharp&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;hljs-function&quot; style=&quot;border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;hljs-title&quot; style=&quot;border: 0px; box-sizing: inherit; color: var(--highlight-literal); font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;User findFirstByOrderByIdDesc&lt;/span&gt;()&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/868295819697035103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/10/last-record-and-last-10-records-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/868295819697035103'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/868295819697035103'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/10/last-record-and-last-10-records-using.html' title='Last record and Last 10 records using JpaHibernate'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-7220113835513331062</id><published>2022-08-29T19:55:00.002+05:30</published><updated>2022-08-29T19:55:35.650+05:30</updated><title type='text'>Round two decimal places in Java</title><content type='html'>&lt;br&gt;&lt;br&gt;
&lt;h2&gt;Filter an array by comparing another array&lt;/h2&gt;
&lt;textarea name=&quot;txt1&quot; id=&quot;txt1&quot; cols=&quot;90&quot; rows=&quot;10&quot; 
          style=&quot;background-color: black;color: white;font-family: Consolas;&quot; disabled&gt;
  public Double roundOfTwoDecimalPlaces(Double doubleValue){
  double d = doubleValue;
  DecimalFormat df = new DecimalFormat(&quot;#.##&quot;);
  return Double.valueOf(df.format(d));
  }
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/7220113835513331062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/08/round-two-decimal-places-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/7220113835513331062'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/7220113835513331062'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/08/round-two-decimal-places-in-java.html' title='Round two decimal places in Java'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-8100339823774933618</id><published>2022-08-24T19:11:00.004+05:30</published><updated>2022-08-24T19:11:59.968+05:30</updated><title type='text'>Convert Array to list in java</title><content type='html'>&lt;br&gt;&lt;br&gt;
&lt;h2&gt;Convert Array to list in java&lt;/h2&gt;
&lt;textarea name=&quot;txt1&quot; id=&quot;txt1&quot; cols=&quot;90&quot; rows=&quot;10&quot; 
          style=&quot;background-color: black;color: white;font-family: Consolas;&quot; disabled&gt;
  Integer[] numbers = new Integer[] { 1, 2, 3 };
  List&lt;Integer&gt; list = Arrays.asList(numbers);
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/8100339823774933618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/08/convert-array-to-list-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8100339823774933618'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8100339823774933618'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/08/convert-array-to-list-in-java.html' title='Convert Array to list in java'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-706719856090362726</id><published>2022-08-02T19:20:00.002+05:30</published><updated>2022-11-25T19:25:04.520+05:30</updated><title type='text'>Remove duplicate objects from array Typescript</title><content type='html'>&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;Filter an array by comparing another array&lt;/h2&gt;&lt;div&gt;Remove duplicate objects from array Typescript&lt;/div&gt;
&lt;textarea cols=&quot;90&quot; disabled=&quot;&quot; id=&quot;txt1&quot; name=&quot;txt1&quot; rows=&quot;10&quot; style=&quot;background-color: black; color: white; font-family: Consolas;&quot;&gt;	const arr = [{id: 1, name: &#39;one&#39;}, {id: 2, name: &#39;two&#39;}, {id: 1, name: &#39;one&#39;}]

  	const ids = arr.map(o =&gt; o.id)
  	const filtered = arr.filter(({id}, index) =&gt; !ids.includes(id, index + 1))

  	console.log(filtered)
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/706719856090362726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/08/remove-duplicate-objects-from-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/706719856090362726'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/706719856090362726'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/08/remove-duplicate-objects-from-array.html' title='Remove duplicate objects from array Typescript'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-8707104525936040146</id><published>2022-07-29T11:32:00.004+05:30</published><updated>2022-07-29T11:34:39.565+05:30</updated><title type='text'>Filter an array by comparing another array</title><content type='html'>&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;Filter an array by comparing another array&lt;/h2&gt;
&lt;textarea
  name=&quot;txt1&quot;
  id=&quot;txt1&quot;
  cols=&quot;90&quot;
  rows=&quot;10&quot;
  style=&quot;background-color: black;color: white;font-family: Consolas;&quot; disabled&gt;
  
        private static &lt;T&gt; Set&lt;T&gt; intersect(Set&lt;T&gt; set1, Set&lt;T&gt; set2) {
              return set1.stream()
                  .filter(set2::contains)
                  .collect(toSet());
            }
&lt;/textarea&gt;
</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/8707104525936040146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/07/filter-array-by-comparing-another-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8707104525936040146'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8707104525936040146'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/07/filter-array-by-comparing-another-array.html' title='Filter an array by comparing another array'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-934910272730642248</id><published>2022-07-29T11:18:00.012+05:30</published><updated>2022-07-29T11:23:33.162+05:30</updated><title type='text'>Java stream filter with map and distinct</title><content type='html'>&lt;br&gt;
&lt;br&gt;
&lt;h2&gt;OptimizeMixedDistinctAggregations$AggregateInfo.getOriginalNonDistinctAggregateArgs()&lt;/h2&gt;
&lt;textarea cols=90 rows=10 id=&quot;txt1&quot; name=&quot;txt1&quot; style=&quot;background-color: black;color: white;font-family: &#39;Lucida Sans&#39;, &#39;Lucida Sans Regular&#39;, &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Geneva, Verdana, sans-serif;&quot;&gt;
  public List&lt;Symbol&gt; getOriginalNonDistinctAggregateArgs() {
  return aggregations.values().stream()
      .filter(aggregation -&gt; !aggregation.getMask().isPresent())
      .map(Aggregation::getCall)
      .flatMap(function -&gt; function.getArguments().stream())
      .distinct()
      .map(Symbol::from)
      .collect(Collectors.toList());
  }
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/934910272730642248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/07/java-stream-filter-with-map-and-distinct.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/934910272730642248'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/934910272730642248'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/07/java-stream-filter-with-map-and-distinct.html' title='Java stream filter with map and distinct'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-7381728870304098503</id><published>2022-06-02T00:49:00.001+05:30</published><updated>2022-06-02T00:49:05.684+05:30</updated><title type='text'>Having clause in sql server query </title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXb6ZmbYAw1Hemq4V7PIkzPP6mgiXT-PqV5sISacBOKJmvLWY3YK8uK68Y1X-GSz2DsqpM8mOPGGt2m6Hid68QsQ4jYBtTMsKJ0Hej_q2jpyDhZh8h5evPe3HtV2ZyVqkufI3SZiwrZEJV/s1600/1654111136862983-0.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
    &lt;img border=&quot;0&quot;   src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXb6ZmbYAw1Hemq4V7PIkzPP6mgiXT-PqV5sISacBOKJmvLWY3YK8uK68Y1X-GSz2DsqpM8mOPGGt2m6Hid68QsQ4jYBtTMsKJ0Hej_q2jpyDhZh8h5evPe3HtV2ZyVqkufI3SZiwrZEJV/s1600/1654111136862983-0.png&quot; width=&quot;400&quot;&gt;
  &lt;/a&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/7381728870304098503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/06/having-clause-in-sql-server-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/7381728870304098503'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/7381728870304098503'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/06/having-clause-in-sql-server-query.html' title='Having clause in sql server query '/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXb6ZmbYAw1Hemq4V7PIkzPP6mgiXT-PqV5sISacBOKJmvLWY3YK8uK68Y1X-GSz2DsqpM8mOPGGt2m6Hid68QsQ4jYBtTMsKJ0Hej_q2jpyDhZh8h5evPe3HtV2ZyVqkufI3SZiwrZEJV/s72-c/1654111136862983-0.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-1263415334712023399</id><published>2022-04-28T16:31:00.002+05:30</published><updated>2022-04-28T16:31:15.992+05:30</updated><title type='text'>JsonFactory, ObjectMapper and JsonNode</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiJo5jNf_dviKdNbH9Kj7lKMiex4B5CgnAUA3efJ0w9GrR0JsnkXeDrYwdQ2OVfJkbQjcmuTBD2HApyKlyRs6yrfNK7xwU5fJzsdsvq2Cj8kn6MWQDACqfa2VlnGB3lcX3v3aZoHnwY46clhtx5OR8APNTYz9MOzcSyzPTlclHbZEpLhefaGXJo6zTJw/s1323/Capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;518&quot; data-original-width=&quot;1323&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiJo5jNf_dviKdNbH9Kj7lKMiex4B5CgnAUA3efJ0w9GrR0JsnkXeDrYwdQ2OVfJkbQjcmuTBD2HApyKlyRs6yrfNK7xwU5fJzsdsvq2Cj8kn6MWQDACqfa2VlnGB3lcX3v3aZoHnwY46clhtx5OR8APNTYz9MOzcSyzPTlclHbZEpLhefaGXJo6zTJw/w640-h250/Capture.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/1263415334712023399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/04/jsonfactory-objectmapper-and-jsonnode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/1263415334712023399'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/1263415334712023399'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/04/jsonfactory-objectmapper-and-jsonnode.html' title='JsonFactory, ObjectMapper and JsonNode'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiJo5jNf_dviKdNbH9Kj7lKMiex4B5CgnAUA3efJ0w9GrR0JsnkXeDrYwdQ2OVfJkbQjcmuTBD2HApyKlyRs6yrfNK7xwU5fJzsdsvq2Cj8kn6MWQDACqfa2VlnGB3lcX3v3aZoHnwY46clhtx5OR8APNTYz9MOzcSyzPTlclHbZEpLhefaGXJo6zTJw/s72-w640-h250-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-8853673128261643278</id><published>2022-04-26T21:22:00.004+05:30</published><updated>2022-07-20T16:23:12.586+05:30</updated><title type='text'>Insert a line break in th:text thymeleaf</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;textarea rows=7 cols=70&gt;
  &lt;td class=&quot;text-center&quot;&gt;
         &lt;strong th:text=&quot;${entry.transferType}&quot;&gt;&lt;/strong&gt;&lt;br&gt;
          &lt;span th:text=&quot;${entry.description}&quot;&gt;&lt;/span&gt;
&lt;/td&gt;
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/8853673128261643278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/04/insert-line-break-in-thtext-thymeleaf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8853673128261643278'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/8853673128261643278'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/04/insert-line-break-in-thtext-thymeleaf.html' title='Insert a line break in th:text thymeleaf'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-6169942012766712107</id><published>2022-02-24T16:41:00.006+05:30</published><updated>2022-07-20T16:26:13.222+05:30</updated><title type='text'>Concatenate Text in date fromat in thymeleaf</title><content type='html'>&lt;textarea cols=70 rows=7&gt;
  &lt;td class=&quot;text-center&quot; th:text=&quot;&#39;On &#39; 
         + ${#dates.format(transfer.createdAt, &#39;d MMM yyyy&#39;)} 
         + &#39; at &#39; + ${#dates.format(transfer.createdAt, &#39;HH:mm:ss&#39;)}&quot;&gt;
  &lt;/td&gt;
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/6169942012766712107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/02/concatenate-text-in-date-fromat-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/6169942012766712107'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/6169942012766712107'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/02/concatenate-text-in-date-fromat-in.html' title='Concatenate Text in date fromat in thymeleaf'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-6531695027784528438</id><published>2022-02-16T05:18:00.001+05:30</published><updated>2022-02-16T05:18:48.700+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java sets"/><title type='text'>Difference between set, hashset and treeset in java </title><content type='html'>&lt;p&gt;A Set is a generic set of values with no duplicate elements. A TreeSet is a set where the elements are sorted.&lt;/p&gt;&lt;p&gt;A HashSet is a set where the elements are not sorted or ordered. It is faster than a TreeSet. The HashSet is an implementation of a Set.&lt;/p&gt;&lt;p&gt;Set is a parent interface of all set classes like TreeSet, HashSet, etc.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/6531695027784528438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/02/difference-between-set-hashset-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/6531695027784528438'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/6531695027784528438'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/02/difference-between-set-hashset-and.html' title='Difference between set, hashset and treeset in java '/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-4012847300548748359</id><published>2022-01-14T12:58:00.013+05:30</published><updated>2022-07-20T16:33:18.661+05:30</updated><title type='text'>JQuery Datatable</title><content type='html'>&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;textarea cols=100 rows=15 style=&quot;scrollbar-width: thin;&quot;&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.datatables.net/1.11.3/css/dataTables.bootstrap4.min.css&quot;&gt;
    &lt;script src=&quot;https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js&quot; &gt;&lt;/script&gt;
    &lt;script src=&quot;https://cdn.datatables.net/1.11.3/js/dataTables.bootstrap4.min.js&quot; &gt;&lt;/script&gt;
    &lt;script&gt;
    $(document).ready( function () {
      $(&#39;#sample_1&#39;).DataTable({
          &quot;searching&quot;: false,
          &quot;paging&quot;: true,
          &quot;lengthChange&quot;: false,
          &quot;pageLength&quot;: 25,
          &quot;ordering&quot;: false
		});
	});
    &lt;/script&gt;
&lt;/textarea&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/4012847300548748359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/01/jquery-datatable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/4012847300548748359'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/4012847300548748359'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/01/jquery-datatable.html' title='JQuery Datatable'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-4707504076390137925</id><published>2022-01-13T08:55:00.001+05:30</published><updated>2022-01-13T08:55:04.348+05:30</updated><title type='text'>Aggregate identifier must be non-null</title><content type='html'>&lt;h4&gt;Aggregate identifier must be non-null after applying an event. Make sure the aggregate identifier is initialized at the latest when handling the creation event.&lt;/h4&gt;

For this I have force fully passed a random variable to CreateRemarkCommand() which is given below:

Users.kt

class CreateRemarkEvent(val id: Int, val remarkDto: RemarkDto) : BaseEvent();
class CreateRemarkCommand(val id: Int, val remarkDto: RemarkDto) : BaseCommand();

RemarksController:

public BaseResponseDto storeRemarks(@RequestBody RemarkDto remarkDto){

        remarkDto.setRemarkDate(new Date());
        remarkDto.setUserType(UserType.SUBSCRIBER);
        int remarkAggregate = Integer.parseInt(RandomStringUtils.randomNumeric(6).toString());
        CreateRemarkCommand remarkCommand = new CreateRemarkCommand(remarkAggregate, remarkDto);
        commandBus.dispatch(new GenericCommandMessage&lt;&gt;(remarkCommand));
        log.info(&quot;Dispatched command&quot;);
        return BaseResponseDto.builder()
                .statusCode(StatusCode.SUCCESS)
                .message(&quot;Remarks Created.&quot;)
                .build();
    }

EventSourcingHandler: 

@EventSourcingHandler
    public void on(CreateRemarkEvent event) {
        RemarkDto remarkDto = event.getRemarkDto();
        this.id = event.getId();
        this.adminId = remarkDto.getAdminId();
        this.userId = remarkDto.getUserId();
        this.userType = remarkDto.getUserType();
        this.remark = remarkDto.getRemark();
        this.remarkDate = remarkDto.getRemarkDate();
    }

@EventHandler:

@EventHandler
    public void handle(CreateRemarkEvent event) {
        RemarkDto remarkDto = event.getRemarkDto();
        UserRemarks remarks = new UserRemarks();
        remarks.setUserId(remarkDto.getUserId());
        remarks.setAdminId(remarkDto.getAdminId());
        remarks.setUserType(remarkDto.getUserType());
        remarks.setRemark(remarkDto.getRemark());
        remarks.setRemarkDate(remarkDto.getRemarkDate());
        remarksQueryRepository.save(remarks);
        log.info(&quot;Successfully saved remarks of user Id&quot; + remarkDto.getUserId());

    }

@CommandHandler:

@CommandHandler
	public void handle(CreateRemarkCommand command) throws Exception {
		remarksRepository.newInstance(() -&gt; new UserRemarks(command.getId(), command.getRemarkDto()));
	}


RemarkAggregate:

public class UserRemarks {
    @AggregateIdentifier
    private Integer id;
    private String remark;
    private Integer adminId;
    private Integer userId;
    private UserType userType;
    private Date remarkDate;

public UserRemarks(int id, RemarkDto remarkDto) {
        apply(new CreateRemarkEvent(id, remarkDto));
    }</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/4707504076390137925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/01/aggregate-identifier-must-be-non-null.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/4707504076390137925'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/4707504076390137925'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/01/aggregate-identifier-must-be-non-null.html' title='Aggregate identifier must be non-null'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1088280253179137045.post-9192118505581384780</id><published>2022-01-13T00:19:00.006+05:30</published><updated>2022-01-13T16:31:48.361+05:30</updated><title type='text'>Pagination in Java</title><content type='html'>

&lt;p&gt;
&lt;h4&gt;Remark Controller:&lt;/h4&gt;
&lt;xmp&gt;

PageRequest pageRequest = new PageRequest(remarkDto.getPageNumber(), Constants.REPORT_ITEM_PER_PAGE);
        Page&lt;UserRemarks&gt; remarksList = remarksQueryRepository.findAll(pageRequest);
        remarksList.getContent().stream().sorted((Comparator.comparing(UserRemarks::getRemarkDate)
  				   .reversed())).collect(Collectors.toList());
        RemarkDtoPaginationResponse response = getRemarkDtoPaginationResponse(remarkDto, remarksList);
        return response;
        
        &lt;br&gt;&lt;br&gt;
  @NotNull
  private RemarkDtoPaginationResponse getRemarkDtoPaginationResponse(RemarkDto remarkDto, Page&lt;UserRemarks&gt; remarksList) {
    List&lt;RemarkDto&gt; remarkDtos = mapperFactory.getMapperFacade().mapAsList(remarksList.getContent(), RemarkDto.class);
    RemarkDtoPaginationResponse response = new RemarkDtoPaginationResponse();
    response.setContent(remarkDtos);
    response.setLast(remarksList.isLast());
    response.setTotalElements((int) remarksList.getNumberOfElements());
    response.setSize(remarksList.getSize());
    response.setNumber(remarkDto.getPageNumber());
    response.setFirst(remarksList.isFirst());
    response.setTotalPages(remarksList.getTotalPages());
    response.setNumberOfElements(remarksList.getNumberOfElements());
    return response;
  }
  &lt;/xmp&gt;
    
&lt;h4&gt;Remark repository&lt;/h4&gt;
@Query(&quot;select d from UserRemarks d order by d.remarkDate desc&quot;)
    Page&lt;UserRemarks&gt; findAllByOrderByDatesDesc(Pageable pageable);
          
&lt;h4&gt;Web Client&lt;/h4&gt;
 
          &lt;br&gt;&lt;br&gt;
  &lt;xmp&gt;
          @RequestMapping(value = &quot;/subscriber-remarks-list&quot;, method = RequestMethod.GET)
    @PreAuthorize(&quot;@permissionService.check(&#39;VIEW_USER_REMARKS&#39;)&quot;)
    public String listAllRemarks(@RequestParam(name = &quot;remarkStartDate&quot;, required = false) String remarkStartDate,
                                 @RequestParam(name = &quot;remarkEndDate&quot;, required = false) String remarkEndDate,
                                 @RequestParam(name = &quot;name&quot;, required = false) String adminName,
                                 @RequestParam(name = &quot;page&quot;, required = false) String page,
                                 HttpServletRequest request, Model model){
        String url = apiGatewayAddress + &quot;/user/get-remark-info&quot;;

        int pageNumber = (page != null &amp;&amp; !page.isEmpty()) ? Integer.parseInt(page) : 0;
        RemarkDto allRemarks = RemarkDto.builder()
                .adminFullName(adminName)
                .pageNumber(pageNumber)
                .build();

        if (!StringUtils.isEmpty(remarkStartDate) &amp;&amp; !StringUtils.isEmpty(remarkEndDate)) {
            Date createdAtStartDate = MfsUtils.stringToDate(remarkStartDate, &quot;MMM dd yyyy&quot;);
            Date createdAtEndDate = MfsUtils.stringToDate(remarkEndDate, &quot;MMM dd yyyy&quot;);
            allRemarks.setRemarkStartDate(createdAtStartDate);
            allRemarks.setRemarkEndDate(MfsUtils.getDayEndTime(createdAtEndDate));
        }
        String queryString = request.getQueryString();
        HashMap&lt;String, String&gt; parameterKeyValuePair = mfsUtils.getUrlParameterToKeyValuePair(queryString);
        List&lt;SearchCriteria&gt; searchCriteriaList = getRemarksCriteria(parameterKeyValuePair);
        RemarkDtoPaginationResponse remarkDto = restTemplate.postForObject(url, allRemarks, RemarkDtoPaginationResponse.class);
        List&lt;RemarkDto&gt; listDto = remarkDto.getContent();
        RemarkDto[] remarkArray = new RemarkDto[listDto.size()];
        for (int i = 0; i &lt; listDto.size(); i++) {
            remarkArray[i] = listDto.get(i);
        }
        for (int i = 0; i &lt; remarkArray.length; i++) {
            AdminDto adminDto = userService.getAdminInfo(remarkArray[i].getAdminId());
            UserDto userDto = userService.getSubscriberInfo(remarkArray[i].getUserId());
            listDto.get(i).setAdminFullName(adminDto.getFullName());
            listDto.get(i).setAdminType(adminDto.getAdminType());
            listDto.get(i).setUserFullName(userDto.getFullName());
        }
//        RemarkDtoPaginationResponse remarks = new RemarkDtoPaginationResponse();
        remarkDto.setContent(listDto);
//        model.addAttribute(&quot;remarks&quot;, remarks.getContent());

        model.addAttribute(&quot;remarks&quot;, remarkDto);
        model.addAttribute(&quot;searchCriteriaList&quot;, searchCriteriaList);
        return &quot;admin/subscriber/subscriber-remarks-list&quot;;
    }
     &lt;/xmp&gt;     
          
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://irisedunet.blogspot.com/feeds/9192118505581384780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://irisedunet.blogspot.com/2022/01/pagination-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/9192118505581384780'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1088280253179137045/posts/default/9192118505581384780'/><link rel='alternate' type='text/html' href='https://irisedunet.blogspot.com/2022/01/pagination-in-java.html' title='Pagination in Java'/><author><name>IRIS EDUCATION</name><uri>http://www.blogger.com/profile/12058951669158249066</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>