Java 类org.springframework.data.annotation.PersistenceConstructor 实例源码

项目:cityoffice    文件:Document.java   
@PersistenceConstructor 
public Document(
        String id, 
        String name, 
        LocalDate deadline, 
        DocumentStatus status, 
        String projectId, 
        String notificationSchemaId,
        String assigneeId) {
    super();
    this.id = id;
    this.name = name;
    this.deadline = deadline;
    this.status = status;
    this.projectId = projectId;
    this.notificationSchemaId = notificationSchemaId;
    this.assigneeId = assigneeId;
}
项目:metadatamanagement    文件:OAuth2AuthenticationAccessToken.java   
/**
 * Construct an access token.
 */
@PersistenceConstructor
public OAuth2AuthenticationAccessToken(OAuth2AccessToken oauth2AccessToken,
    OAuth2Authentication authentication, String authenticationId) {
  this.id = UUID.randomUUID()
    .toString();
  this.tokenId = oauth2AccessToken.getValue();
  this.oauth2AccessToken = oauth2AccessToken;
  this.authenticationId = authenticationId;
  this.userName = authentication.getName();
  this.clientId = authentication.getOAuth2Request()
    .getClientId();
  this.authentication = authentication;
  this.refreshToken = oauth2AccessToken.getRefreshToken()
    .getValue();
}
项目:10Service    文件:User.java   
@PersistenceConstructor
public User(final String id, String userName, long createTime, long lastLoginTime,
        double[] location, String firstName, String lastName, String emailAddress,
        String imageUrl, String displayName, final String credential) {
    this.userName = userName;
    this.id = id;
    this.createTime = createTime;
    this.lastLoginTime = lastLoginTime;
    this.location = location;
    this.firstName = firstName;
    this.lastName = lastName;
    this.emailAddress = emailAddress;
    this.imageUrl = imageUrl;
    this.displayName = displayName;
    this.credential = credential;
}
项目:spring-security-mongo    文件:MongoClientDetails.java   
@PersistenceConstructor
public MongoClientDetails(final String clientId,
                          final String clientSecret,
                          final Set<String> scope,
                          final Set<String> resourceIds,
                          final Set<String> authorizedGrantTypes,
                          final Set<String> registeredRedirectUris,
                          final List<GrantedAuthority> authorities,
                          final Integer accessTokenValiditySeconds,
                          final Integer refreshTokenValiditySeconds,
                          final Map<String, Object> additionalInformation,
                          final Set<String> autoApproveScopes) {
    this.clientId = clientId;
    this.clientSecret = clientSecret;
    this.scope = scope;
    this.resourceIds = resourceIds;
    this.authorizedGrantTypes = authorizedGrantTypes;
    this.registeredRedirectUris = registeredRedirectUris;
    this.authorities = authorities;
    this.accessTokenValiditySeconds = accessTokenValiditySeconds;
    this.refreshTokenValiditySeconds = refreshTokenValiditySeconds;
    this.additionalInformation = additionalInformation;
    this.autoApproveScopes = autoApproveScopes;
}
项目:spring-security-mongo    文件:MongoApproval.java   
@PersistenceConstructor
public MongoApproval(final String id,
                     final String userId,
                     final String clientId,
                     final String scope,
                     final ApprovalStatus status,
                     final LocalDate expiresAt,
                     final LocalDate lastUpdatedAt) {
    this.id = id;
    this.userId = userId;
    this.clientId = clientId;
    this.scope = scope;
    this.status = status;
    this.expiresAt = expiresAt;
    this.lastUpdatedAt = lastUpdatedAt;
}
项目:spring-security-mongo    文件:MongoOAuth2AccessToken.java   
@PersistenceConstructor
public MongoOAuth2AccessToken(final String tokenId,
                              final byte[] token,
                              final String authenticationId,
                              final String username,
                              final String clientId,
                              final byte[] authentication,
                              final String refreshToken) {
    this.tokenId = tokenId;
    this.token = token;
    this.authenticationId = authenticationId;
    this.username = username;
    this.clientId = clientId;
    this.authentication = authentication;
    this.refreshToken = refreshToken;
}
项目:spring-security-mongo    文件:User.java   
@PersistenceConstructor
public User(final String password,
            final String username,
            final UUID userUUID,
            final Set<GrantedAuthority> authorities,
            final boolean accountNonExpired,
            final boolean accountNonLocked,
            final boolean credentialsNonExpired,
            final boolean enabled) {
    this.password = password;
    this.username = username;
    this.userUUID = userUUID;
    this.authorities = authorities;
    this.accountNonExpired = accountNonExpired;
    this.accountNonLocked = accountNonLocked;
    this.credentialsNonExpired = credentialsNonExpired;
    this.enabled = enabled;
}
项目:spring-blog    文件:User.java   
@PersistenceConstructor
public User(String userId, String username, String password, String name, String email,
        Date registrationDate, Set<String> roles, boolean accountNonExpired, boolean accountNonLocked,
        boolean enabled, boolean credentialsNonExpired) {
    this.userId = userId;
    this.username = username;
    this.password = password;
    this.name = name;
    this.email = email;
    this.registrationDate = registrationDate;
    this.roles = roles;
    this.accountNonExpired = accountNonExpired;
    this.accountNonLocked = accountNonLocked;
    this.enabled = enabled;
    this.credentialsNonExpired = credentialsNonExpired;
}
项目:Spring-5.0-Cookbook    文件:Employee.java   
@PersistenceConstructor
public Employee(Long id, BigInteger _id, Long empid, String firstname, String lastname, Long age, String email,
        Date birthday, Long deptid) {
    super();
    this.id = id;
    this._id = _id;
    this.empid = empid;
    this.firstname = firstname;
    this.lastname = lastname;
    this.age = age;
    this.email = email;
    this.birthday = birthday;
    this.deptid = deptid;
}
项目:Spring-5.0-Cookbook    文件:Department.java   
@PersistenceConstructor
public Department(BigInteger _id, Long id, Long deptid, String name) {
    super();
    this._id = _id;
    this.id = id;
    this.deptid = deptid;
    this.name = name;
}
项目:Spring-Security-Third-Edition    文件:CalendarUser.java   
@PersistenceConstructor
public CalendarUser(Integer id, String email, String password, String firstName, String lastName) {
    this.id = id;
    this.firstName = firstName;
    this.lastName = lastName;
    this.email = email;
    this.password = password;
}
项目:Spring-Security-Third-Edition    文件:Event.java   
/**
 * Event Constructor
 * @param id
 * @param summary
 * @param description
 * @param when
 * @param owner
 * @param attendee
 */
@PersistenceConstructor
public Event(Integer id,
             String summary,
             String description,
             Calendar when,
             CalendarUser owner,
             CalendarUser attendee) {
    this.id = id;
    this.summary = summary;
    this.description = description;
    this.when = when;
    this.owner = owner;
    this.attendee = attendee;
}
项目:whatsmars    文件:Order.java   
/**
 * Creates a new {@link Order} for the given {@link Customer}, shipping and billing {@link Address}.
 * 
 * @param customer must not be {@literal null}.
 * @param shippingAddress must not be {@literal null}.
 * @param billingAddress can be {@literal null}.
 */
@PersistenceConstructor
public Order(Customer customer, Address shippingAddress, Address billingAddress) {

    Assert.notNull(customer);
    Assert.notNull(shippingAddress);

    this.customer = customer;
    this.shippingAddress = shippingAddress;
    this.billingAddress = billingAddress;
}
项目:whatsmars    文件:Product.java   
/**
 * Creates a new {@link Product} from the given name and description.
 * 
 * @param name must not be {@literal null} or empty.
 * @param price must not be {@literal null} or less than or equal to zero.
 * @param description
 */
@PersistenceConstructor
public Product(String name, BigDecimal price, String description) {

    Assert.hasText(name, "Name must not be null or empty!");
    Assert.isTrue(BigDecimal.ZERO.compareTo(price) < 0, "Price must be greater than zero!");

    this.name = name;
    this.price = price;
    this.description = description;
}
项目:jhipster-ribbon-hystrix    文件:_OAuth2AuthenticationAccessToken.java   
@PersistenceConstructor
public OAuth2AuthenticationAccessToken(OAuth2AccessToken oAuth2AccessToken, OAuth2Authentication authentication, String authenticationId) {
    this.id = UUID.randomUUID().toString();
    this.tokenId = oAuth2AccessToken.getValue();
    this.oAuth2AccessToken = oAuth2AccessToken;
    this.authenticationId = authenticationId;
    this.userName = authentication.getName();
    this.clientId = authentication.getOAuth2Request().getClientId();
    this.authentication = authentication;
    if(oAuth2AccessToken.getRefreshToken() != null) {
        this.refreshToken = oAuth2AccessToken.getRefreshToken().getValue();
    }
}
项目:Thesis-JHipster    文件:_OAuth2AuthenticationAccessToken.java   
@PersistenceConstructor
public OAuth2AuthenticationAccessToken(OAuth2AccessToken oAuth2AccessToken, OAuth2Authentication authentication, String authenticationId) {
    this.id = UUID.randomUUID().toString();
    this.tokenId = oAuth2AccessToken.getValue();
    this.oAuth2AccessToken = oAuth2AccessToken;
    this.authenticationId = authenticationId;
    this.userName = authentication.getName();
    this.clientId = authentication.getOAuth2Request().getClientId();
    this.authentication = authentication;
    if(oAuth2AccessToken.getRefreshToken() != null) {
        this.refreshToken = oAuth2AccessToken.getRefreshToken().getValue();
    }
}
项目:SpringBoot-Oauth2-stater-kit    文件:OAuth2AuthenticationAccessToken.java   
@PersistenceConstructor
public OAuth2AuthenticationAccessToken(OAuth2AccessToken oAuth2AccessToken, OAuth2Authentication authentication, String authenticationId) {
    this.id = UUID.randomUUID().toString();
    this.tokenId = oAuth2AccessToken.getValue();
    this.oAuth2AccessToken = oAuth2AccessToken;
    this.authenticationId = authenticationId;
    this.userName = authentication.getName();
    this.clientId = authentication.getOAuth2Request().getClientId();
    this.authentication = authentication;
    this.refreshToken = oAuth2AccessToken.getRefreshToken().getValue();
}
项目:microservices    文件:User.java   
/**
 * User persistence constructor.
 * @param id Id
 * @param username Username
 * @param authorities Authorities
 */
@PersistenceConstructor
@JsonCreator
public User(@JsonProperty ("id") final String id, @JsonProperty ("username") final String username,
            @JsonProperty ("authorities") final Set<String> authorities) {
    this.id = id;
    this.username = username;
    this.authorities = authorities;
}
项目:menuber    文件:OAuth2AuthenticationAccessToken.java   
@PersistenceConstructor
public OAuth2AuthenticationAccessToken(OAuth2AccessToken oAuth2AccessToken, OAuth2Authentication authentication, String authenticationId) {
    this.id = UUID.randomUUID().toString();
    this.tokenId = oAuth2AccessToken.getValue();
    this.oAuth2AccessToken = oAuth2AccessToken;
    this.authenticationId = authenticationId;
    this.userName = authentication.getName();
    this.clientId = authentication.getOAuth2Request().getClientId();
    this.authentication = authentication;
    this.refreshToken = oAuth2AccessToken.getRefreshToken().getValue();
}
项目:coinbase-traders    文件:Client.java   
@PersistenceConstructor
public Client(String randomId, String apiKey, String apiSecret, BigDecimal limit, BigDecimal amount, Transfer.Type type) {
    this.randomId = randomId;
    this.apiKey = apiKey;
    this.apiSecret = apiSecret;
    this.limit = limit;
    this.amount = amount;
    this.type = type;

    coinbase = new CoinbaseBuilder()
        .withApiKey(apiKey, apiSecret)
        .build();
}
项目:spring-security-mongo    文件:MongoOAuth2ClientToken.java   
@PersistenceConstructor
public MongoOAuth2ClientToken(final String id,
                              final String tokenId,
                              final byte[] token,
                              final String authenticationId,
                              final String username,
                              final String clientId) {
    this.id = id;
    this.tokenId = tokenId;
    this.token = token;
    this.authenticationId = authenticationId;
    this.username = username;
    this.clientId = clientId;
}
项目:spring-security-mongo    文件:MongoOAuth2RefreshToken.java   
@PersistenceConstructor
public MongoOAuth2RefreshToken(final String tokenId,
                               final byte[] token,
                               final byte[] authentication) {
    this.tokenId = tokenId;
    this.token = token;
    this.authentication = authentication;
}
项目:spring-blog    文件:BlogPost.java   
@PersistenceConstructor
public BlogPost(String postId, String title, String slug, String content, Date postDate,
                String status, boolean enableComments, Set<String> tags) {
    this.postId = postId;
    this.title = title;
    this.slug = slug;
    this.content = content;
    this.postDate = postDate;
    this.status = status;
    this.enableComments = enableComments;
    this.tags = tags;
}
项目:markdown-redactor    文件:MarkdownContent.java   
@PersistenceConstructor
public MarkdownContent(Long id, String text) {
    this.id = id;
    this.text = text;
}
项目:Spring-Security-Third-Edition    文件:Role.java   
@PersistenceConstructor
public Role(Integer id, String name) {
    this.id = id;
    this.name = name;
}
项目:smarti    文件:MongoHealthCheck.java   
@PersistenceConstructor
private DbVersion(String id) {
    this.id = id;
}
项目:smarti    文件:Conversation.java   
@PersistenceConstructor
public Conversation(ObjectId id, ObjectId owner){
    this.id = id;
    this.owner = owner;
}
项目:smarti    文件:Query.java   
@PersistenceConstructor
protected Query(String creator, Date created) {
    this.creator = creator;
    this.created = created;
}
项目:smarti    文件:AuthToken.java   
@PersistenceConstructor
private AuthToken(String id, ObjectId clientId) {
    this.id = id;
    this.clientId = clientId;
}
项目:smarti    文件:Slot.java   
/**
 * Creates an optional QuerySlot
 */
@JsonCreator
@PersistenceConstructor
public Slot(@JsonProperty("role") String role, @JsonProperty("tokenType") Token.Type tokenType) {
    this(role, tokenType, null, false);
}
项目:smarti    文件:Configuration.java   
@PersistenceConstructor
public Configuration(ObjectId id) {
    this.id = id;
}
项目:spring-data-mybatis    文件:Booking.java   
@PersistenceConstructor
public Booking(Long userId) {
    this.userId = userId;
}
项目:cf-gemfire-connector-examples    文件:Pizza.java   
@PersistenceConstructor
public Pizza(String pizzaName, Sauce sauce, Set<Topping> pizzaToppings) {
    this.pizzaName = pizzaName;
    this.sauce = sauce;
    this.pizzaToppings = pizzaToppings;
}
项目:geode-social-demo    文件:Person.java   
@PersistenceConstructor
public Person(String name, String description) {
  this.name = name;
}
项目:geode-social-demo    文件:Post.java   
@PersistenceConstructor
public Post(String personId, String text) {
  this.id = new PostId(personId);
  this.text = text;
  this.date = new Date();
}
项目:geode-social-demo    文件:PostId.java   
@PersistenceConstructor
public PostId(String person) {
  this.person = person;
  this.postId = UUID.randomUUID();
}
项目:spring-tutorials    文件:Venue.java   
@PersistenceConstructor
public Venue(String name, Point location) {
    super();
    this.name = name;
    this.location = location;
}
项目:spring-data-crate    文件:MappingCrateConverterTest.java   
@PersistenceConstructor
public Country(String name, List<Language> languages) {
    super();
    this.name = name;
    this.languages = languages;
}