Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

JPA Connector for Spring Social

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 spring-social-jpa-quickstart Bringing jpa in line with jdbc version April 03, 2014
Octocat-spinner-32 spring-social-jpa Bringing jpa in line with jdbc version April 03, 2014
Octocat-spinner-32 .gitignore Bringing jpa in line with jdbc version April 03, 2014
Octocat-spinner-32 README.md Documentation update July 26, 2013
Octocat-spinner-32 license.txt Initial commit August 26, 2011
README.md

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.

Something went wrong with that request. Please try again.