forked from Cookies_Github_mirror/AquaDX
[maimai2] Implement proper player rate saving
This commit is contained in:
@@ -4,38 +4,15 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "Maimai2UserRate")
|
||||
@Table(name = "maimai2_user_rate")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class UserRate implements Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@JsonIgnore
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "user_id")
|
||||
private UserDetail user;
|
||||
|
||||
public class UserRate {
|
||||
private int musicId;
|
||||
private int level;
|
||||
private int romVersion;
|
||||
private int achievement;
|
||||
|
||||
public UserRate(UserDetail user) {
|
||||
this.user = user;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user