org.springframework.data.annotation.PersistenceConstructor Java Examples
The following examples show how to use
org.springframework.data.annotation.PersistenceConstructor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: User.java From spring-blog with MIT License | 6 votes |
@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; }
Example #2
Source File: User.java From spring-security-mongo with MIT License | 6 votes |
@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; }
Example #3
Source File: MongoOAuth2AccessToken.java From spring-security-mongo with MIT License | 6 votes |
@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; }
Example #4
Source File: MongoApproval.java From spring-security-mongo with MIT License | 6 votes |
@PersistenceConstructor public MongoApproval(final String id, final String userId, final String clientId, final String scope, final ApprovalStatus status, final LocalDateTime expiresAt, final LocalDateTime lastUpdatedAt) { this.id = id; this.userId = userId; this.clientId = clientId; this.scope = scope; this.status = status; this.expiresAt = expiresAt; this.lastUpdatedAt = lastUpdatedAt; }
Example #5
Source File: MongoClientDetails.java From spring-security-mongo with MIT License | 6 votes |
@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; }
Example #6
Source File: Order.java From spring-graalvm-native with Apache License 2.0 | 5 votes |
@PersistenceConstructor public Order(String id, String customerId, Date orderDate, List<LineItem> items) { this.id = id; this.customerId = customerId; this.orderDate = orderDate; this.items = items; }
Example #7
Source File: BlogPost.java From spring-blog with MIT License | 5 votes |
@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; }
Example #8
Source File: MongoOAuth2RefreshToken.java From spring-security-mongo with MIT License | 5 votes |
@PersistenceConstructor public MongoOAuth2RefreshToken(final String tokenId, final byte[] token, final byte[] authentication) { this.tokenId = tokenId; this.token = token; this.authentication = authentication; }
Example #9
Source File: MongoOAuth2ClientToken.java From spring-security-mongo with MIT License | 5 votes |
@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; }
Example #10
Source File: Product.java From spring-data-examples with Apache License 2.0 | 5 votes |
@PersistenceConstructor public Product(Long id, String name, BigDecimal price, String description) { this.id = id; this.name = name; this.price = price; this.description = description; }
Example #11
Source File: Product.java From spring-data-examples with Apache License 2.0 | 5 votes |
@PersistenceConstructor public Product(Long id, String name, BigDecimal price, String description) { this.id = id; this.name = name; this.price = price; this.description = description; }
Example #12
Source File: Product.java From spring-data-examples with Apache License 2.0 | 5 votes |
@PersistenceConstructor public Product(Long id, String name, BigDecimal price, String description) { this.id = id; this.name = name; this.price = price; this.description = description; }
Example #13
Source File: Product.java From spring-data-examples with Apache License 2.0 | 5 votes |
@PersistenceConstructor public Product(Long id, String name, BigDecimal price, String description) { this.id = id; this.name = name; this.price = price; this.description = description; }
Example #14
Source File: _OAuth2AuthenticationAccessToken.java From jhipster-ribbon-hystrix with GNU General Public License v3.0 | 5 votes |
@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(); } }
Example #15
Source File: Event.java From Spring-Security-Third-Edition with MIT License | 5 votes |
/** * 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; }
Example #16
Source File: CalendarUser.java From Spring-Security-Third-Edition with MIT License | 5 votes |
@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; }
Example #17
Source File: Department.java From Spring-5.0-Cookbook with MIT License | 5 votes |
@PersistenceConstructor public Department(BigInteger _id, Long id, Long deptid, String name) { super(); this._id = _id; this.id = id; this.deptid = deptid; this.name = name; }
Example #18
Source File: Employee.java From Spring-5.0-Cookbook with MIT License | 5 votes |
@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; }
Example #19
Source File: AppUser.java From fredbet with Creative Commons Attribution Share Alike 4.0 International | 4 votes |
@PersistenceConstructor protected AppUser() { // for hibernate }
Example #20
Source File: Venue.java From spring-tutorials with Apache License 2.0 | 4 votes |
@PersistenceConstructor public Venue(String name, Point location) { super(); this.name = name; this.location = location; }
Example #21
Source File: Role.java From Spring-Security-Third-Edition with MIT License | 4 votes |
@PersistenceConstructor public Role(Integer id, String name) { this.id = id; this.name = name; }
Example #22
Source File: MappingCrateConverterTest.java From spring-data-crate with Apache License 2.0 | 4 votes |
@PersistenceConstructor public Country(String name, List<Language> languages) { super(); this.name = name; this.languages = languages; }
Example #23
Source File: PersistenceConstructorClass.java From spring-data with Apache License 2.0 | 4 votes |
@PersistenceConstructor PersistenceConstructorClass() { }
Example #24
Source File: ParameterType.java From eventeum with Apache License 2.0 | 4 votes |
@PersistenceConstructor public ParameterType(String type) { setType(type); }
Example #25
Source File: LineItem.java From spring-graalvm-native with Apache License 2.0 | 4 votes |
@PersistenceConstructor public LineItem(String caption, double price, int quantity) { this(caption, price); this.quantity = quantity; }
Example #26
Source File: Movie.java From sdn-rx with Apache License 2.0 | 4 votes |
@PersistenceConstructor Movie(@Nullable Long id, String title, String tagline) { this.id = id; this.title = title; this.tagline = tagline; }
Example #27
Source File: Article.java From tutorials with MIT License | 4 votes |
@PersistenceConstructor public Article(Long id, String article) { super(); this.id = id; this.article = article; }
Example #28
Source File: Employee.java From tutorials with MIT License | 4 votes |
@PersistenceConstructor public Employee(String name, double salary) { this.name = name; this.salary = salary; }
Example #29
Source File: User.java From tutorials with MIT License | 4 votes |
@PersistenceConstructor public User(final String name, @Value("#root.age ?: 0") final Integer age, final EmailAddress emailAddress) { this.name = name; this.age = age; this.emailAddress = emailAddress; }