Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

mschipperheyn/spring-social-jpa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Social JPA is a plugin for Spring Social that allows you to use JPA as a basis for your repository as opposed to straight JDBC.

Setting up jpa

In order to set up your jpa environment you will need to implement a number of interfaces:

  • RemoteUser: This interface represents your model class for storing the user connection information
  • SocialUserManager: This interface represents the interaction with the jpa environment: the queries for storing and retrieving connections.

Configuration options jpa connection repository

These days, it's getting more and more common to initialize Spring applications through @Configuration. You can also do this for Spring Social JPA

@Configuration
@EnableJpaConnectionRepository
public class SocialConfig{

}

The only thing different from the @EnableJdbcConnectionRepository configuration (see original documentation) is the "jpaTemplate" attribute.

@EnableJpaConnectionRepository(
	jpaTemplate="socialUserManager"
)

The jpaTemplate will reference the component that implements the SocialUserManager interface.

About

JPA Connector for Spring Social

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages