Add missing relation type
This commit is contained in:
parent
4f1a8e9c5e
commit
026b1afdce
@ -1,9 +1,6 @@
|
||||
package net.Broken.DB.Entity;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.*;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
@ -14,6 +11,7 @@ public class PendingPwdResetEntity {
|
||||
@GeneratedValue(strategy= GenerationType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@OneToOne
|
||||
private UserEntity userEntity;
|
||||
private String securityToken;
|
||||
private Date expirationDate;
|
||||
|
@ -63,15 +63,13 @@ public class MainBot {
|
||||
logger.debug(aArg);
|
||||
if(aArg.startsWith("--") || aArg.startsWith("-")){
|
||||
aArg = aArg.replaceAll("-","");
|
||||
if(aArg.equals("token") || aArg.equals("t")){
|
||||
token = args[i+1];
|
||||
}
|
||||
else if(aArg.equals("dev") || aArg.equals("d")){
|
||||
if(aArg.equals("dev") || aArg.equals("d")){
|
||||
dev = true;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
token = System.getenv("TOKEN");
|
||||
|
||||
jda = Init.initJda(token, dev);
|
||||
ConfigurableApplicationContext ctx = SpringApplication.run(MainBot.class, args);
|
||||
|
Loading…
Reference in New Issue
Block a user