Это мой запрос API: post {{baseUrl}}/api/v1/auth/swinp
entity:
@Entity
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Table(name = "app_user", indexes = {
@Index(name = "idx_provider_id_provider_type", columnList = "providerId, providerType")
})
public class User implements UserDetails {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@JoinColumn(unique = true, nullable = false)
private String username;
private String password;
private String providerId;
@Enumerated(EnumType.STRING)
private AuthProviderType providerType;
@ElementCollection(fetch = FetchType.EAGER)
@Enumerated(EnumType.STRING)
Set roles = new HashSet();
@Override
public Collection
Подробнее здесь: https://stackoverflow.com/questions/797 ... to-persist