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; package net.Broken.DB.Entity;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
@ -14,6 +11,7 @@ public class PendingPwdResetEntity {
@GeneratedValue(strategy= GenerationType.AUTO) @GeneratedValue(strategy= GenerationType.AUTO)
private Integer id; private Integer id;
@OneToOne
private UserEntity userEntity; private UserEntity userEntity;
private String securityToken; private String securityToken;
private Date expirationDate; private Date expirationDate;

View File

@ -63,15 +63,13 @@ public class MainBot {
logger.debug(aArg); logger.debug(aArg);
if(aArg.startsWith("--") || aArg.startsWith("-")){ if(aArg.startsWith("--") || aArg.startsWith("-")){
aArg = aArg.replaceAll("-",""); aArg = aArg.replaceAll("-","");
if(aArg.equals("token") || aArg.equals("t")){ if(aArg.equals("dev") || aArg.equals("d")){
token = args[i+1];
}
else if(aArg.equals("dev") || aArg.equals("d")){
dev = true; dev = true;
} }
} }
i++; i++;
} }
token = System.getenv("TOKEN");
jda = Init.initJda(token, dev); jda = Init.initJda(token, dev);
ConfigurableApplicationContext ctx = SpringApplication.run(MainBot.class, args); ConfigurableApplicationContext ctx = SpringApplication.run(MainBot.class, args);