I have a collection of very simple Java objects which I store in Google Firestore database (native mode) using Objectify 6.0.7. Storing, deleting, and querying objects all work fine, but a query with an orderBy clause on a single field fails with “no matching index found”. The exact same code work…
“No qualifying bean” for repository in Groovy Spring JPA application
I know there are a bunch of similar questions on this topic, however all of them that I’ve found so far are either not quite my situation, or refer to one of the following solutions that from what I’ve read is either outdated or inapplicable: @EnableJpaRepositories annotation – taken care of…
Pattern for Java generics for “internal” type
I have a class. Its public interface (excluding the constructor) is not generic, but its internal logic is. A simplified example of this is: class Summarizer { private final …
DataTable to csv file
I have created a web page using bootstrap/thymeleaf where I show some data tables using Ajax. And I have the buttons to export to CSV, but what I need is to generate a temporary file from this datatable and get the path to my controller when the datatable is already loaded with the data using a button. So I n…
testing code with a “real” Thymeleaf template engine and nothing else
In my Spring Boot project (v2.6), one of my components is using a Thymeleaf template engine to generate content. I want to unit test my component, but I am struggling because it has a TemplateEngine as a constructor dependency : I don’t want to mock the TemplateEngine (the test would not have great valu…
Want to list all the files in a child of firebase storage and share the ArrayList to set it in the recycler view for a android App [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question In my firebase storage i have a child which contains subfolder and on these …
Cucumber BDD Custom Parameter Definition not working for feature with examples
I’m trying to write step definitions with Serenity Cucumber BDD This is my feature: My step definition How can I use “userName” and “password” instead of “word” in the step definition I try to give the parameter definition shown below, but it doesn’t work Answer…
Creating nested bullet lists in Word using POI v5
I am working in Java, using the following Maven dependency (and no others): and the following class, gleaned from another SO post: This creates a bullet list, as I want; I hope to indent it, but that’s secondary. The real modification I need to make to it is to add two more levels of lists, so that the …
Why isn’t my linked list addition program working for some cases
So I have a java program to add two numbers, both numbers are represented by 2 different linked lists where each node stores one digit. I am trying to write a recursive solution where the sum of both …
Spring Boot CrudRepository not saving entities to my database
I’ve been at this for a few hours now and can’t seem to find the issue. For a bit of context, here is my database schema : Here is my Student class : And here is my Task class : My H2 Database structure therefore looks like this : I am trying to add a task to a student through