The time has come to create our first queries. Let’s start with the most straightforward technique. Writing queries with it is a child’s play, and I’ll teach you the rules.
READ MORE
Jakarta EE, Spring & Android
The time has come to create our first queries. Let’s start with the most straightforward technique. Writing queries with it is a child’s play, and I’ll teach you the rules.
This chapter covers the basics of transaction handling in Spring Framework for JPA—and yet it’s pretty long! I want to give you the essential tools to deal effectively with the most common scenarios.
READ MORESpring Data is based on the repository concept. I showed you an astonishing example at the end of the first chapter. The present chapter discusses that concept, focusing on JPA.
Read moreIn this chapter we’ll create the sample project for the course from scratch. Since the course focuses on Spring Data JPA, I’ll ensure the project doesn’t require a deep understanding of the Spring Framework and JPA. The simpler, the better. Simplicity is beautiful.
READ MOREWelcome to my course! In sixteen chapters, you’ll learn to harness the power of Spring Data JPA, always with a practical approach. Apart from being a progressive learning tool suitable for all levels, this course also serves as a quick reference guide.
If you’ve never used Spring Data, you’ll have many questions. What problems does it solve? How does it work? In this introductory chapter I give you the answers. Spoiler: Spring Data JPA is the best way to work with relational databases.
READ MOREThe app developed in the tutorial “Android Design: Light and Dark Theme with Material Components” features both a light and a dark theme—but it has a flaw. Users can only switch themes by turning Android’s dark or power-saving modes on and off. In this tutorial, I’ll explain how to create a theme selector like the one that WhatsUp —and many other popular apps— provides.
READ MOREIn essence, a dark theme displays mostly dark surfaces with lodw light. It contrasts with light themes, where white backgrounds and light surfaces predominate.
What are the advantages of dark themes? How are they implemented in Android? Can a light and a dark theme live together in the same app? In this post I give you the answers. A second part explains how to create a preferences screen with a theme selector. The approach is purely technical—we’ll talk about code, not graphic design.
READ MOREThe bottom navigation bar is one of the essential navigation components defined by Material Design. You see it every day in popular apps such as Spotify, Instagram, TikTok or YouTube. It displays several icons, sometimes with a text label, that provide access to the main sections of an app.
READ MOREThe sample projects developed in this blog’s posts are stored in Git repositories, the most popular code version control system. They’re freely accessible on GitHub. If you want to download the repositories and import their projects into your integrated development environment (IDE), you´re reading the right tutorial.
READ MORENavigation Drawer is one of the most important visual components defined by Material Design. Maybe its name doesn’t tell you anything, but you know it well as a user. It’s the popular side menu that slides from the left (or the right in the case of right-to-left languages) and usually has a hamburger button to display it.
READ MOREThe configuration properties for Spring Boot and the supported third parties libraries take their values in the application.properties
file, or application.yml
if you prefer the YAML format. But how do we get their values? What about the custom properties of our projects? In this tutorial I give you the answers—easy solutions that you can apply immediately.
When approaching the design of integration and end-to-end tests, we have to decide what to do with the external systems that our application uses. The most typical case is databases. Also, we should remember that creating test doubles objects defeats the purpose of this type of testing.
READ MORE