Learn to map between enum types and other data types like strings or integers using MapStruct’s @ValueMapping
Search Results for: any
Internet Address Resolution SPI in Java
Learn how Internet Address Resolution works in Java using the InetAddress API.
Java Weekly, Issue 536
News on Java evolving through JEPs and an exploration of the Azure Spring Apps platform from Microsoft (and VMware). A solid week.
Get a Path to a Resource in a Java JAR File
Explore different methods to obtain the path to a resource within a Java JAR file.
Convert TemporalAccessor to LocalDate
Explore different options to convert a TemporalAccessor object to a LocalDate object in Java.
Check if an Element Is Present in a Set in Java
Learn to check if an element is in a Set in Java.
Logging in Spring Boot With Loki
Learn how to send Spring Boot application logs to a Grafana Loki server.
The @Struct Annotation Type in Hibernate – Structured User-Defined Types
Quick intro to Hibernate’s @Struct annotation to create structured user-defined types.
Finding Element by Attribute in Selenium
A quick and practical guide to finding element by attribute in Selenium.
Merge Overlapping Intervals in a Java Collection
Learn how to take a Java collection of intervals and merge the overlapping ones.
@Subselect Annotation in Hibernate
Learn how to use @Subselect to select entities not from a particular table but from a sub-select query.
Fix Ambiguous Method Call Error in Mockito
Learn how to avoid ambiguous method calls in the specific context of the Mockito framework.
Saga Pattern in a Microservices Architecture
Learn how to implement Saga Pattern in a microservices architecture with Orkes Conductor.
Create Spring Prototype Scope Bean with Runtime Arguments
Learn about creating a prototype-scoped bean with runtime arguments in Spring.
Java InputStream vs. InputStreamReader
Learn how an InputStreamReader builds on an InputStream to assist when working with streams of characters.
Get List of Entity From Database in Hibernate
Explore a few techniques for retrieving lists of entities from a database using Hibernate
When to Use Setter Methods or Constructors for Setting a Variable’s Value in Java
Learn when to use setter methods or constructors for setting the value of a variable in Java.
Normalizing the EOL Character in Java
Explore different Java methods for normalizing EOL characters.
Reading a .gz File Line by Line Using GZIPInputStream
Sometimes, we need to read compressed .gz files in Java. Learn to use Java’s built in stream libraries to read from gzip format files.
Vigenère Cipher in Java
A quick and practical guide to Vigenère Cipher in Java.