Add missing relation type

This commit is contained in:
Sebastien 2018-08-05 15:27:20 +02:00
parent 4f1a8e9c5e
commit 026b1afdce
2 changed files with 4 additions and 8 deletions

View File

@ -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;

View File

@ -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);