<commit_before>/**
 * Copyright (C) [2013] [The FURTHeR Project]
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.utah.further.ds.openmrs.model.v1_9.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * The persistent class for the person_attribute database table.
 * 
 * <p>
 * -----------------------------------------------------------------------------------<br>
 * (c) 2008-2012 FURTHeR Project, Health Sciences IT, University of Utah<br>
 * Contact: {@code <<EMAIL>>}<br>
 * Biomedical Informatics, 26 South 2000 East<br>
 * Room 5775 HSEB, Salt Lake City, UT 84112<br>
 * Day Phone: 1-801-581-4080<br>
 * -----------------------------------------------------------------------------------
 * 
 * @author <NAME> {@code <<EMAIL>>}
 * @version Sep 3, 2013
 */
@Entity
@Table(name = "person_attribute")
@XmlRootElement(name = "PersonAttribute")
@XmlAccessorType(XmlAccessType.FIELD)
public class PersonAttribute implements Serializable
{
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "person_attribute_id")
	private Long personAttributeId;

	@Column(name = "changed_by")
	private Long changedBy;

	private Long creator;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_changed")
	private Date dateChanged;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_created")
	private Date dateCreated;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_voided")
	private Date dateVoided;

	private String uuid;

	private String value;

	@Column(name = "void_reason")
	private String voidReason;

	private Boolean voided;

	@Column(name = "voided_by")
	private Long voidedBy;

	// do not join, just use id
	@Column(name = "person_attribute_type_id")
	private Long personAttributeType;

	// bi-directional many-to-one association to Person
	@ManyToOne
	@JoinColumn(name = "person_id")
	@XmlTransient
	private Person person;

	public PersonAttribute()
	{
	}

	public Long getPersonAttributeId()
	{
		return this.personAttributeId;
	}<commit_msg>Missed adding xmltypeadapter to voided field <commit_after>/**
 * Copyright (C) [2013] [The FURTHeR Project]
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.utah.further.ds.openmrs.model.v1_9.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import edu.utah.further.core.xml.jaxb.adapter.BooleanIntegerAdapter;

/**
 * The persistent class for the person_attribute database table.
 * 
 * <p>
 * -----------------------------------------------------------------------------------<br>
 * (c) 2008-2012 FURTHeR Project, Health Sciences IT, University of Utah<br>
 * Contact: {@code <<EMAIL>>}<br>
 * Biomedical Informatics, 26 South 2000 East<br>
 * Room 5775 HSEB, Salt Lake City, UT 84112<br>
 * Day Phone: 1-801-581-4080<br>
 * -----------------------------------------------------------------------------------
 * 
 * @author <NAME> {@code <<EMAIL>>}
 * @version Sep 3, 2013
 */
@Entity
@Table(name = "person_attribute")
@XmlRootElement(name = "PersonAttribute")
@XmlAccessorType(XmlAccessType.FIELD)
public class PersonAttribute implements Serializable
{
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "person_attribute_id")
	private Long personAttributeId;

	@Column(name = "changed_by")
	private Long changedBy;

	private Long creator;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_changed")
	private Date dateChanged;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_created")
	private Date dateCreated;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date_voided")
	private Date dateVoided;

	private String uuid;

	private String value;

	@Column(name = "void_reason")
	private String voidReason;

	@XmlJavaTypeAdapter(BooleanIntegerAdapter.class)
	private Boolean voided;

	@Column(name = "voided_by")
	private Long voidedBy;

	// do not join, just use id
	@Column(name = "person_attribute_type_id")
	private Long personAttributeType;

	// bi-directional many-to-one association to Person
	@ManyToOne
	@JoinColumn(name = "person_id")
	@XmlTransient
	private Person person;

	public PersonAttribute()
	{
	}

	public Long getPersonAttributeId()
	{
		return this.personAttributeId;
	}
{'fraction_non_alphanumeric': 0.15099806825499035, 'fraction_numerical': 0.016097875080489377, 'mean_word_length': 3.7103866565579984, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 11}, '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': '5400929', 'n_tokens_mistral': 1930, 'n_tokens_neox': 1812, 'n_words': 533}