package woko.ext.usermanagement.hibernate;

import woko.ext.usermanagement.core.ResetPasswordDetails;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Entity
public class HbResetPasswordDetails implements ResetPasswordDetails {

    @Id
    private String key;

    @NotNull
    private String email;

    @NotNull
    private Date creationDate;

    private Date resetDate;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Date getResetDate() {
        return resetDate;
    }

    public void setResetDate(Date resetDate) {
        this.resetDate = resetDate;
    }


}

@@ -96,16 +96,49 @@
 tails;%0A%0A
+import javax.persistence.Column;%0A
 import j
@@ -347,16 +347,55 @@
     @Id%0A
+    @Column(name = %22registration_key%22)%0A
     priv

fix key problem on MySQL in HbResetPasswordDetails