Class UserConnectionImpl

java.lang.Object
org.broadleafcommerce.core.social.domain.UserConnectionImpl
All Implemented Interfaces:
UserConnection

@Entity public class UserConnectionImpl extends Object implements UserConnection
This class creates the following BLC domain object for the Spring Social User Connection. The following is the SQL that is needed for Spring Social to achieve JDBC-based persistence. http://static.springsource.org/spring-social/docs/1.0.x/reference/html/serviceprovider.html#service-providers-persisting-connections

It is expected that the following table be created: ----------------------------------------------------- create table UserConnection (userId varchar(255) not null, providerId varchar(255) not null, providerUserId varchar(255), rank int not null, displayName varchar(255), profileUrl varchar(512), imageUrl varchar(512), accessToken varchar(255) not null, secret varchar(255), refreshToken varchar(255), expireTime bigint, primary key (userId, providerId, providerUserId));

create unique index UserConnectionRank on UserConnection(userId, providerId, rank); ------------------------------------------------------

Author:
elbertbautista