Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.status;
  
  import java.util.List;
  
 
 
 @Table(name = "message")
 public class Message extends OriannaDto {
     private static final long serialVersionUID = 4577200907615978158L;
     private String authorcontentcreated_atseverityupdated_at;
 
     @Id
     private Long id;
 
     @OneToMany(cascade = .)
     private List<Translationtranslations;
 
     /*
      * (non-Javadoc)
      * @see java.lang.Object#equals(java.lang.Object)
      */
     @Override
     public boolean equals(final Object obj) {
         if(this == obj) {
             return true;
         }
         if(obj == null) {
             return false;
         }
         if(!(obj instanceof Message)) {
             return false;
         }
         final Message other = (Message)obj;
         if( == null) {
             if(other.author != null) {
                 return false;
             }
         }
         else if(!.equals(other.author)) {
             return false;
         }
         if( == null) {
             if(other.content != null) {
                 return false;
             }
         }
         else if(!.equals(other.content)) {
             return false;
         }
         if( == null) {
             if(other.created_at != null) {
                 return false;
             }
         }
         else if(!.equals(other.created_at)) {
             return false;
         }
         if( == null) {
             if(other.id != null) {
                 return false;
             }
         }
         else if(!.equals(other.id)) {
             return false;
         }
         if( == null) {
             if(other.severity != null) {
                 return false;
             }
         }
         else if(!.equals(other.severity)) {
             return false;
         }
         if( == null) {
             if(other.translations != null) {
                 return false;
             }
         }
         else if(!.equals(other.translations)) {
             return false;
         }
         if( == null) {
             if(other.updated_at != null) {
                 return false;
             }
         }
         else if(!.equals(other.updated_at)) {
             return false;
         }
         return true;
     }

    

Returns:
the author
    public String getAuthor() {
        return ;
    }

    

Returns:
the content
    public String getContent() {
        return ;
    }

    

Returns:
the created_at
    public String getCreated_at() {
        return ;
    }
    @Override
    public String getDataStoreIndexField(final Class<?> keyType) {
        if(keyType.equals(Long.class)) {
            return "id";
        }
        return null;
    }

    

Returns:
the id
    public Long getId() {
        return ;
    }

    

Returns:
the severity
    public String getSeverity() {
        return ;
    }

    

Returns:
the translations
    public List<TranslationgetTranslations() {
        return ;
    }

    

Returns:
the updated_at
    public String getUpdated_at() {
        return ;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        return result;
    }

    

Parameters:
author the author to set
    public void setAuthor(final String author) {
        this. = author;
    }

    

Parameters:
content the content to set
    public void setContent(final String content) {
        this. = content;
    }

    

Parameters:
created_at the created_at to set
    public void setCreated_at(final String created_at) {
        this. = created_at;
    }

    

Parameters:
id the id to set
    public void setId(final Long id) {
        this. = id;
    }

    

Parameters:
severity the severity to set
    public void setSeverity(final String severity) {
        this. = severity;
    }

    

Parameters:
translations the translations to set
    public void setTranslations(final List<Translationtranslations) {
        this. = translations;
    }

    

Parameters:
updated_at the updated_at to set
    public void setUpdated_at(final String updated_at) {
        this. = updated_at;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Message [author=" +  + ", content=" +  + ", created_at=" +  + ", severity=" +  + ", updated_at=" + 
                + ", id=" +  + ", translations=" +  + "]";
    }
New to GrepCode? Check out our FAQ X