Problem Hi guys below is my code to generate random long unique Ids, I use System.nanoTime to generate long Id […]
Tag: spring
Service Layer in Spring Data
Problem I’m building a small application in Spring and Spring Data JPA. I need serval layer. I don’t know if […]
Mapping a complex JSON response to two different JPA Entities
Problem I am mapping a complex JSON response to two JPA Entity model classes using Jackson. The classes are CxExport […]
Spring JWT authentication using cookies
Problem I’m working on a experimental code which allows users to authorize using JWT’s jjwt library. Here’s what I have […]
Spring Boot Websocket STOMP Crud
Problem I have a personal project that runs the backend under spring boot that implements websocket for real-time functionality and […]
Getting products by category, price, etc
Problem I have the following concerns: Is Set a good choice for getting products? What are drawbacks of Set for […]
Reporting sums of shopping carts
Problem I have an object (ShoppingCart) that has a list of CartItems, which contains the related Product and the quantity […]
Java orchestration calls from two CRUD endpoints
Problem Here is my orchestration endpoint where I call customer endpoint and product endpoint. Product endpoint contains info about what […]
You are being watched! – Comments of Interest
Problem You are being watched Code Review has an open system A machine that spies on you on every hour […]
Handling an invalid SQL query exception
Problem This is my DAO object that takes the Cypher query as a string, and returns a JSON representation of […]