Using SecondaryTable For Flexible Database Design (With example)

Let’s consider an example. You have been working on a website selling phones since 2000. In early 2000, there wasn’t any smartphone so you may created an object Phone like this: I’m using lombok (in case you find @Data strange). So, back in 2000s, phones were simple like that. However, with the appearance of smartphone.… Continue reading Using SecondaryTable For Flexible Database Design (With example)

Setting and Getting Custom Properties In Quarkus

Often time, when creating web application, you need to set some values in application settings and later, pull such values to display to users. One of the most prevalent examples is the application’s name and/or application’s version. I’ll show you how to set such values in the app and later, display them in an example… Continue reading Setting and Getting Custom Properties In Quarkus

How To Return File Download In JAX-RS Application

When developing JAX-RS applications, most of the time, you return JSON to the client. However, there are times you need to return file download. For example, your client may require that when an user access a certain URL, the application must prompt a save file dialog. If you have trouble with this requirement, look no… Continue reading How To Return File Download In JAX-RS Application

Create Quarkus Project Under 5 Minutes With Live Reloading

Creating Quarkus project is quite simple. You can get started in just a few minutes. In this post, I’m going to show you how you can do that. My assumption is you have maven installed. If you don’t, please follow the guide to install it here. After you have maven installed, it very easy to… Continue reading Create Quarkus Project Under 5 Minutes With Live Reloading

How To Fix CORS AJAX In Chrome Extension

Recently I return to work on my extension that allow people to save pages to a remote site and also highlight and comment on the page they save (sounds cool?). When saving a particular page to my server (using fetch/jQuery post), I got this error message: The error reads like this: What the extension tried… Continue reading How To Fix CORS AJAX In Chrome Extension