Skip to content

Tag: java

Grouping by query results based on a date using stream API java

I have an entity object with several columns which looks like this: As I use a composite key I have an embeddable class I also have a repository class and I use several request. The following query allow to select database results based on a query on workflow value. String dates have the following format: 202…

CriteriaBuilder slows down during ~15000 executions

Spring 5.3 with Hibernate 5.6: I am experiencing some performance issues after rewrite/migration from Hibernate Criteria API to JPA CriteriaBuilder for a findByCriteria method that runs ~15k times during startup of my app. Normally, this would take maybe one minute using Criteria API but when I have the JPA c…

Store bearerToken until expires

I have an application that consumes a REST service from another server, which has its own authentication method to be able to consume its services. Today, for each request we have, I am calling the authentication service then i receivethe bearerToken (which has a duration of 3 hours) and after that I call the…

Issue with compiling a cocos2d-x 3.17.2 JS/web project

Cross-posting from https://discuss.cocos2d-x.org/t/issue-with-compiling-a-project/57198 I am having an issue trying to compile a new cocos2dx JS project. I have a fresh Ubuntu 18.04 box setup with Java 1.8, Cmake, and all other dependencies as mentioned @ https://docs.cocos.com/cocos2d-x/manual/en/installatio…