<commit_before>package gov.nih.nci.cabig.caaers.domain;

import gov.nih.nci.cabig.ctms.domain.AbstractMutableDomainObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * This class represents the Agent domain object associated with the Adverse event report.
 * 
 * @author <NAME>
 * 
 */
@Entity
@Table(name = "agents")
@GenericGenerator(name = "id-generator", strategy = "native", parameters = { @Parameter(name = "sequence", value = "seq_agents_id") })
public class Agent extends AbstractMutableDomainObject {

    private String name;

    private String description;

    private String nscNumber;

    
    

    @Column(name = "description")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

  
    @Column(name = "nsc")
    public String getNscNumber() {
        return nscNumber;
    }

    public void setNscNumber(String nsc) {
        this.nscNumber = nsc;
    }

    public boolean equals(Object o) {
        if (this == o) return true;<commit_msg>CAAERS-2301<commit_after>package gov.nih.nci.cabig.caaers.domain;

import gov.nih.nci.cabig.ctms.domain.AbstractMutableDomainObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * This class represents the Agent domain object associated with the Adverse event report.
 * 
 * @author <NAME>
 * 
 */
@Entity
@Table(name = "agents")
@GenericGenerator(name = "id-generator", strategy = "native", parameters = { @Parameter(name = "sequence", value = "seq_agents_id") })
public class Agent extends AbstractMutableDomainObject {

    private String name;

    private String description;

    private String nscNumber;

    private String displayName;

    @Column(name = "description")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

  
    @Column(name = "nsc")
    public String getNscNumber() {
        return nscNumber;
    }

    public void setNscNumber(String nsc) {
        this.nscNumber = nsc;
    }
    
    @Transient
    public String getDisplayName(){
    	return name;
    }
    
    public void setDisplayName(String displayName){
    	this.displayName = displayName;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
{'fraction_non_alphanumeric': 0.10112359550561797, 'fraction_numerical': 0.0013218770654329147, 'mean_word_length': 3.1636863823933976, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5938854', 'n_tokens_mistral': 902, 'n_tokens_neox': 863, 'n_words': 222}