Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package models;
- import javax.persistence.CascadeType;
- import javax.persistence.Entity;
- import javax.persistence.FetchType;
- import javax.persistence.ManyToOne;
- import play.db.jpa.Model;
- @Entity(name = "bases")
- @org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
- public class Base extends Model
- {
- private String email;
- private String password;
- private String server;
- private String server_auth;
- private int server_port;
- private boolean server_ssl;
- private boolean server_starttls;
- private boolean auth_wholemail;
- private boolean is_popsmtp;
- private boolean is_relay;
- private boolean is_checked;
- private boolean is_valid;
- @ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
- private User user;
- public Base(User user, String email, String password)
- {
- this.email = email;
- this.password = password;
- this.user = user;
- }
- /**
- * @return the email
- */
- public String getEmail()
- {
- return email;
- }
- /**
- * @param email the email to set
- */
- public void setEmail(String email)
- {
- this.email = email;
- }
- /**
- * @return the password
- */
- public String getPassword()
- {
- return password;
- }
- /**
- * @param password the password to set
- */
- public void setPassword(String password)
- {
- this.password = password;
- }
- /**
- * @return the server
- */
- public String getServer()
- {
- return server;
- }
- /**
- * @param server the server to set
- */
- public void setServer(String server)
- {
- this.server = server;
- }
- /**
- * @return the server_auth
- */
- public String getServerAuth()
- {
- return server_auth;
- }
- /**
- * @param server_auth the server_auth to set
- */
- public void setServerAuth(String server_auth)
- {
- this.server_auth = server_auth;
- }
- /**
- * @return the server_port
- */
- public int getServerPort()
- {
- return server_port;
- }
- /**
- * @param server_port the server_port to set
- */
- public void setServerPort(int server_port)
- {
- this.server_port = server_port;
- }
- /**
- * @return the server_ssl
- */
- public boolean isServerSsl()
- {
- return server_ssl;
- }
- /**
- * @param server_ssl the server_ssl to set
- */
- public void setServerSsl(boolean server_ssl)
- {
- this.server_ssl = server_ssl;
- }
- /**
- * @return the server_starttls
- */
- public boolean isServerStarttls()
- {
- return server_starttls;
- }
- /**
- * @param server_starttls the server_starttls to set
- */
- public void setServerStarttls(boolean server_starttls)
- {
- this.server_starttls = server_starttls;
- }
- /**
- * @return the auth_wholemail
- */
- public boolean isAuthWholemail()
- {
- return auth_wholemail;
- }
- /**
- * @param auth_wholemail the auth_wholemail to set
- */
- public void setAuthWholemail(boolean auth_wholemail)
- {
- this.auth_wholemail = auth_wholemail;
- }
- /**
- * @return the is_popsmtp
- */
- public boolean isPopsmtp()
- {
- return is_popsmtp;
- }
- /**
- * @param is_popsmtp the is_popsmtp to set
- */
- public void setIsPopsmtp(boolean is_popsmtp)
- {
- this.is_popsmtp = is_popsmtp;
- }
- /**
- * @return the is_relay
- */
- public boolean isRelay()
- {
- return is_relay;
- }
- /**
- * @param is_relay the is_relay to set
- */
- public void setIsRelay(boolean is_relay)
- {
- this.is_relay = is_relay;
- }
- /**
- * @return the is_checked
- */
- public boolean isChecked()
- {
- return is_checked;
- }
- /**
- * @param is_checked the is_checked to set
- */
- public void setIsChecked(boolean is_checked)
- {
- this.is_checked = is_checked;
- }
- /**
- * @return the is_valid
- */
- public boolean isValid()
- {
- return is_valid;
- }
- /**
- * @param is_valid the is_valid to set
- */
- public void setIsValid(boolean is_valid)
- {
- this.is_valid = is_valid;
- }
- /**
- * @return the user
- */
- public User getUser()
- {
- return user;
- }
- /**
- * @param user the user to set
- */
- public void setUser(User user)
- {
- this.user = user;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement