Skip to content

Instantly share code, notes, and snippets.

@hakandurmaz
Created May 25, 2020 14:13
Show Gist options
  • Save hakandurmaz/740ac294e02d1abc33177634074b0dbb to your computer and use it in GitHub Desktop.
Save hakandurmaz/740ac294e02d1abc33177634074b0dbb to your computer and use it in GitHub Desktop.
package com.hakandurmaz.springbootjwtauth.model;
import java.util.Collection;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "users")
@Data
public class User {
@Id
String id;
String username;
String password;
}
@Developer1Dev
Copy link

Hi @hakandurmaz, what is the purpose of this code ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment