<commit_before>// default package
// Generated Nov 24, 2014 4:55:08 PM by Hibernate Tools 4.0.0
package qa.qcri.aidr.dbmanager.entities.model;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.Hibernate;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;

import qa.qcri.aidr.dbmanager.entities.misc.Crisis;

/**
 * ModelFamily generated by hbm2java
 */
@Entity
@Table(name = "model_family", catalog = "aidr_predict", uniqueConstraints = @UniqueConstraint(columnNames = {
    "crisisID", "nominalAttributeID"}))
public class ModelFamily implements java.io.Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -1064917491408243168L;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "modelFamilyID", unique = true, nullable = false)
    private Long modelFamilyId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nominalAttributeID", nullable = false)
	@JsonBackReference
	private NominalAttribute nominalAttribute;
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "crisisID", nullable = false)
	@JsonBackReference
	private Crisis crisis;

	private boolean isActive;
	<commit_msg>FetchType EAGER for nominalAttribute from ModelFamily<commit_after>// default package
// Generated Nov 24, 2014 4:55:08 PM by Hibernate Tools 4.0.0
package qa.qcri.aidr.dbmanager.entities.model;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.Hibernate;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;

import qa.qcri.aidr.dbmanager.entities.misc.Crisis;

/**
 * ModelFamily generated by hbm2java
 */
@Entity
@Table(name = "model_family", catalog = "aidr_predict", uniqueConstraints = @UniqueConstraint(columnNames = {
    "crisisID", "nominalAttributeID"}))
public class ModelFamily implements java.io.Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -1064917491408243168L;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "modelFamilyID", unique = true, nullable = false)
    private Long modelFamilyId;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "nominalAttributeID", nullable = false)
	@JsonBackReference
	private NominalAttribute nominalAttribute;
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "crisisID", nullable = false)
	@JsonBackReference
	private Crisis crisis;

	private boolean isActive;
	
{'fraction_non_alphanumeric': 0.09900392393600965, 'fraction_numerical': 0.02052520374283127, 'mean_word_length': 5.397683397683398, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7324761', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1007, 'n_words': 219}