I currently have multi tennancy database working by implmenting AbstractDataSourceBasedMultiTenantConnectionProviderImpl. This is working great thankfully. Now
In a spring boot application, I have this entity @Data @NoArgsConstructor @AllArgsConstructor @Entity public class User { @Id @GeneratedValue(generator="user_id
I have a spring boot application with mariaDB, after updating the connector ("org.mariadb.jdbc:mariadb-java-client") from version 2.7.5 to 3.0.3 the datetimes (
I am having trouble getting an H2 In Memory database to populate. The idea here to have the BuildingCode which is unique as a primary key and id. I get the foll
I am aware that JPA works with the default isolation level set for the database , if no isolation level is explicitly specified using the @Transactional annotat
I search to know if a user have an active subscription @Query("select case when count(u) > 0 then true else false end from User u where u.id=:userId and cur
I am trying to execute a couple of queries on different threads. There are 2 top level queries each executing on different tables at runtime. For executing the
When repository.save(t) is called from my service, which is in turn called from my controller, all works just fine, and the object is inserted into the database
I have a JPA entity with the following fields: @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "modified_by_user_id") private User modifiedByUser; @Conve
In my last project, there was a requirement for throwing exceptions when the request body contains extra parameters. If the request will be like { "test":"bo
I have a table which has a foreign key relationship with an existing table and its child table. The parent table exists before the child table as is populated
I have implemented two entities (Department and Employee) with custom ID generator for Employee, and has a unidirectional one-to-many relationship as shown belo
I have a query: @Query( value = "select name, age, now() from received.scheme ;", nativeQuery = true ) public {???} selectData() I cannot create or r
I would like to add a database to it so that the information is stored.
Am getting a No converter found capable of converting from type Instant to type Long while using Spring and Cassandra. I have 2 Instant fields writtenDate (in t
I didn't find any proper solution for this so maybe you can assist. Basically issue is ultra simple I want to do some kind of "better looking" error handling wh
I'm trying to use Spring Batch RepositoryItemReaderBuilder with RepositoryMethodReference as parameter to provide type-safe way to call repository methods. unfo
How can we get the count of OneToMany field of JPA entity as querying count for each parent entity while fetching as a list is costly and there is no way in JPA
I ran into an error with custom delete method in spring data jpa. Basically there's a bag which contains items, and when deleting the bag, all the items in it s
Grails GORM is able to autogenerate ORM findBy[fieldName] and related methods for each of the fields in the entity, I'm not sure what magic it uses to do this I