/*******************************************************************************
 * This file is part of Educatio.
 *
 *     Educatio is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     Educatio is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with Educatio.  If not, see <http://www.gnu.org/licenses/>.
 *     
 *     Authors:
 *           Filipe Marinho de Brito - filipe.marinho.brito@gmail.com
 *           Rodrigo de Souza Ataides - rodrigoataides@gmail.com
 *******************************************************************************/
package br.com.core.jdbc.dao.pessoa;

import org.springframework.data.domain.Persistable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import static com.blogspot.nurkiewicz.jdbcrepository.JdbcRepository.pk;

/**
 * This class is generated by Spring Data Jdbc code generator.
 *
 * @author Spring Data Jdbc Code Generator
 */
public class FormacaoAcademicaAreaConhecimentoTable implements Persistable<Object[]>
{

	private static final long serialVersionUID = 1L;

	private Long formacaoAcademica;

	private Long areaConhecimento;

	private transient boolean persisted;


	public FormacaoAcademicaAreaConhecimentoTable ()
	{

	}

	public Object[] getId()
	{
		return pk(this.areaConhecimento, this.formacaoAcademica);
	}

	public boolean isNew ()
	{
		return !persisted;
	}

	public void setFormacaoAcademica (Long formacaoAcademica)
	{
		this.formacaoAcademica = formacaoAcademica;
	}

	public Long getFormacaoAcademica ()
	{
		return this.formacaoAcademica;
	}

	public void setAreaConhecimento (Long areaConhecimento)
	{
		this.areaConhecimento = areaConhecimento;
	}

	public Long getAreaConhecimento ()
	{
		return this.areaConhecimento;
	}

	public void setPersisted (Boolean persisted)
	{
		this.persisted = persisted;
	}

	public Boolean getPersisted ()
	{
		return this.persisted;
	}

	@Override
	public String toString () 
	{
		return ToStringBuilder.reflectionToString (this); 
	}

	/* START Do not remove/edit this line. CodeGenerator will preserve any code between start and end tags.*/

	/* END Do not remove/edit this line. CodeGenerator will preserve any between start and end tags.*/

}