Coder Social home page Coder Social logo

spring-data-jpa-examples's Introduction

Test With Spring Course

If you are struggling to write good automated tests for Spring web applications, you are not alone! I have launched a video course that describes how you can write automated tests which embrace change and help you to save your time (and nerves).

Spring Data JPA Tutorial

This repository contains the example applications of my Spring Data JPA tutorial. The READMEs of the examples provide more information about the application in question.

spring-data-jpa-examples's People

Contributors

caot avatar pkainulainen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-data-jpa-examples's Issues

No qualifying bean of type [net.petrikainulainen.spring.datajpa.repository.PersonRepository]

Hello,

I am getting the following error:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [net.petrikainulainen.spring.datajpa.repository.PersonRepository]

It is caused at RepositoryPersonService at line 26-27

@resource
private PersonRepository personRepository;

The bean with concrete class of interface PersonRepository is available in the Bean-container.

how to use Auditing in JPQL

Hello, I am always looking for how to use the @LastModifiedDate annotation of the spring-boot-jpa auditing function when using @query to execute modify SQL statements, but I have not found a solution. If you have a good solution, I hope you can help answer it. Thank you

CsrfHeaderFilter class name

The name of file CSRFHeaderFilter.java but in it, the class declaration, CsrfHeaderFilter is used. I couldn't compile&run query-method project. I renamed the file name CSRF.... to Csrf and it works.

how to deal with N+1 problems.

When they are one-to-many or one-to-one association, I can deal with it with 'join fetch' or 'EntityGraph'. While I created entities without these association,like the following two classes:
class A{ private long aid;private long bid }
class B{ private long bid..}
A is not containing B object,they are associated with property just like views of database tables.
In this case,how can I avoid the N+1 scenario.
as the following jpql:
'select new com.fooww.recommend.individual.sz.mysql.entity.dto.UserHouseAndHouseRentDTO(cu,hr,chr) from CompanyUser cu join UserHouseRent chr on cu.pkUser = chr.pkUser join HouseRent hr on hr.pkHouse = chr.pkHouse'

Qperson

Where is Qperson modal occurring error

How to used repository classes for same method twice

Lets say I've following method. Supposed I may have many record for single UserId?

public interface StudentRepository extends CrudRepository<Student, String> {   
   List<Student> findByStudentId(String StudentId); // used generic purposes
   List<Student> findByStudentId(String StudentId); // for getting last updated record for this StudentId
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.