Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [spring-data]

Spring Data is an umbrella open source project which contains many subprojects that are specific to a given database. The projects are developed by working together with many of the companies and community that are behind these exciting technologies.

0
votes
0answers
8 views

find by object attribute spring data

i have two class :-->User(id/username(string)/password(string))-->Role(id/role(string)/user(User))@Entity@Table(name="Utilisateur")public class User {@Id@GeneratedValue(strategy=...
0
votes
0answers
12 views

Spring data with LDAP (Active Directory) returns WILL NOT PERFORM in any writing operation

I'm currently trying to implement an simple CRUD integrated with Active Directory via LDAP, using Spring Data, for managing my internal users.The problem is, while the reading works as expected, any ...
1
vote
0answers
15 views

How to cache only when the json is valid

I have a spring rest api application that is using HATEOAS/PagingAndSortingRepository to do most of the heavy lifting.I have implemented caching using guava but I am having issues where when the ...
1
vote
0answers
11 views

AbstractMethodError when using Java Client to create ElasticSearch mapping

I'm using Spring Data Elastic Search 2.1.12.RELEASE with elastic search 2.4.4.I have the following code:elasticsearchTemplate.createIndex(indexName);elasticsearchTemplate.addAlias(alias);...
0
votes
0answers
20 views

Can be Solr-Spring-Data be adapted to the embbeded Lucene?

I'd like to design a portable application that is using Spring with JPA, but doesn't deal with Hibernate to make it possible to easily to port it to Google Apps Engine. In case of data persistence ...
-1
votes
0answers
23 views

Spring Data Repository returning multiple sub types

I have an abstract entity:@Entity@Inheritance(strategy=InheritanceType.JOINED)public abstract class ExerciseLog<T extends Exercise> {@Id@GeneratedValue(strategy=GenerationType....
1
vote
1answer
39 views

Catch Spring data exeptions

I try persist list of entities:for (Charge charge : charges) {try {Charge savedCharge=saveCharge(charge);}catch (DataAccessException e){log.error(e.getMessage());...
0
votes
0answers
13 views

Container managed MongoDB Connection in Liberty + Spring Data

We have developed an application in Spring Boot + spring data (backend) + MongoDB and used IBM Websphere Liberty as application Server. We were used "Application Managed DB Connection" in an yml file ...
1
vote
2answers
37 views

How to Mix Manual SQL Row Mapping with CrudRepository (Spring Data)

ContextI've seperated my application into three layers: controller, service, repository. This has been incredibly useful as I can change things on any layer without affecting the others.Currently ...
1
vote
2answers
38 views

Test database down with Spring

I need Spring tests for the app behavior during database(connection,down db..) error.Is there a way to shutdown/kill or start the H2 in-memory db from the Spring unit tests?
0
votes
1answer
19 views

How to search multi values in PagingAndSortingRepository Spring MVC

User search city name and result shows city from my database but when user search for state name result shows nothing!I have 4 columns(city, state, services, title) in my database that user can ...
0
votes
0answers
16 views

Hibernate spring data jba one to many bidirectional recurse loop - change json ignore depends on parent entity

I have one-to-many relationship. Hotel and Country. Country can have M hotels, the Hotel has one country. HotelEntity@Entity@Table(name="hotel")public class HotelEntity {...@...
0
votes
1answer
31 views

JPA many to many relationship with specific cascade type

For my task i need to create many to many relationship using JPA, but junctional table is manually specified with extra columns.Data structure looks like this:Books (id, name, published, genre, ...
2
votes
0answers
29 views

Spring data query list in list

I'm having the following models Title.javapublic class Title {private short id;private String name;private List<TitleGenre> titleGenres;}TitleGenre.java public class ...
0
votes
3answers
13 views

Change default behaviour of mongoTemplate.find

Is there any way to modify every query prepared by mongotemplate.find spring boot 2?I want to modify every find query prepared by spring data mongo find . I want to add custom query after every find ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,