DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

How does AI transform chaos engineering from an experiment into a critical capability? Learn how to effectively operationalize the chaos.

Data quality isn't just a technical issue: It impacts an organization's compliance, operational efficiency, and customer satisfaction.

Are you a front-end or full-stack developer frustrated by front-end distractions? Learn to move forward with tooling and clear boundaries.

Developer Experience: Demand to support engineering teams has risen, and there is a shift from traditional DevOps to workflow improvements.

Core Badge
Avatar

Amanuel G. Shiferaw

DZone Core CORE

Software developer at No company

Milano, IT

Joined Nov 2016

Stats

Reputation: 355
Pageviews: 350.0K
Articles: 8
Comments: 11
  • Articles
  • Comments

Articles

article thumbnail
JPA Criteria With Pagination
This introduction explores the synergy between JPA Criteria and Pagination, shedding light on how developers can leverage this combination to fetch and organize data.
November 17, 2023
· 11,930 Views · 6 Likes
article thumbnail
Clustered Quartz Scheduler With Spring Boot and MongoDB
In this writing, I will be discussing how to achieve single execution in a clustered environment using Quartz. Do not be frightened of Quartz though.
January 23, 2021
· 26,635 Views · 3 Likes
article thumbnail
How to Repair Grub
This post shows how to install grub that has been overwritten by windows, and includes systems with separate boot partition.
May 14, 2020
· 12,668 Views · 5 Likes
article thumbnail
OpenAPI (Swagger) and Spring Boot Integration
In this article, take a look at OpenAPI (Swagger) and Spring Boot integration.
December 18, 2019
· 45,780 Views · 11 Likes
article thumbnail
Avoiding NullPointerException in Java 8
How do you prevent NullPointerExceptions in your Java code?
August 26, 2019
· 43,873 Views · 5 Likes
article thumbnail
How to git squash in 6 Steps
Learn how to keep your commit history neat and tidy with the squash git command.
May 30, 2019
· 11,752 Views · 3 Likes
article thumbnail
Jackson Property Custom Naming Strategy
Learn more about this Jackson property custom naming strategy.
February 22, 2019
· 111,273 Views · 9 Likes
article thumbnail
Intro to Jenkins Pipelines and Publishing Over SSH
Learn how to use a Jenkins pipeline to build and publish over SSH.
November 30, 2018
· 79,874 Views · 9 Likes

Comments

JPA Criteria With Pagination

Nov 29, 2023 · Amanuel G. Shiferaw

Your code defeats the purpose of using a standard implementation at all.
imho, you have to base your implementations on abstraction.
I don't understand why you used native sql in this case.

We are using it over here without any issue, at least until now.

BR

OpenAPI (Swagger) and Spring Boot Integration

Sep 15, 2020 · Amanuel G. Shiferaw

Hello Ahmet, the package is generated and added to the classpath automatically on build. In the pom.xml, search for `swagger-codegen-maven-plugin` part, it is this section that generates it. Or else check the git repository README.

OpenAPI (Swagger) and Spring Boot Integration

Dec 28, 2019 · Amanuel G. Shiferaw

Avoiding NullPointerException in Java 8

Aug 27, 2019 · Amanuel G. Shiferaw

I don’t get your idea. Not allowing null is one thing that can solve NPE. But, if you use null or Optional, you have to validate in anycase.

Avoiding NullPointerException in Java 8

Aug 27, 2019 · Amanuel G. Shiferaw

The thing is it misses the point, on leaf nodes there is no need for a wrapper while possible to check directly. Obviously there will be a miss use and may not matter for small apps.


Let's say that a class has 20 fields, should you wrap them all in Optional you will see the difference on performance (even if it might seem negligible). Assume that the method using this class is triggered simultaneously from say > 10000 clients. I leave the calculation to you. I know these days there are monster servers capable of running any app. But, should we consider them or the minimum required enviroment?

Avoiding NullPointerException in Java 8

Aug 27, 2019 · Amanuel G. Shiferaw

Disagree on what, can you explain a bit more?

Avoiding NullPointerException in Java 8

Aug 27, 2019 · Amanuel G. Shiferaw

Imo yet this is much better, rather than wrapping just to check for nullity, wouldn't it be better to check the raw object

Avoiding NullPointerException in Java 8

Aug 26, 2019 · Amanuel G. Shiferaw

Totaly agree, it is very argumentative. Infact it is recommended to be used only class level. Class fields should not be declared Optional. Please check a talk from Stuart Marks, one of the principal engineers: https://www.youtube.com/watch?v=Ej0sss6cq14


How to git squash in 6 Steps

Jun 03, 2019 · Amanuel G. Shiferaw

Hello Amar,

Thanks for the comment, yes it is a re-write and may depend on the provider. The whole point is whether to keep all history from feature branches or not.

Intro to Jenkins Pipelines and Publishing Over SSH

May 03, 2019 · Amanuel G. Shiferaw

Once you have configured the SSH address and cridentials using the admin console, you add a property to the enviroment variable as " env.SSH_CONFIG_NAME='localSSHConfig' ". Then later to access it with "${env.SSH_CONFIG_NAME}"

Intro to Jenkins Pipelines and Publishing Over SSH

Mar 13, 2019 · Amanuel G. Shiferaw

You are welcome, glad to hear that.

User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: