Erro ao carregar pagina

12/01/2016

4


Bom dia ou boa noite por gentileza alguém poderia me ajudar com esse erro

A pagina não carrega

Obrigado




jan 12, 2016 8:38:19 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
ADVERTÊNCIA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Portaria1' did not find a matching property.
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Server version:        Apache Tomcat/8.0.24
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Server built:          Jul 1 2015 20:19:55 UTC
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Server number:         8.0.24.0
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: OS Name:               Windows 8.1
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: OS Version:            6.3
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Architecture:          x86
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_40\jre
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: JVM Version:           1.8.0_40-b26
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: JVM Vendor:            Oracle Corporation
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: CATALINA_BASE:         C:\Users\Wilson\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: CATALINA_HOME:         C:\Program Files\Apache Software Foundation\Tomcat 8.0
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dcatalina.base=C:\Users\Wilson\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.0
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dwtp.deploy=C:\Users\Wilson\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed
jan 12, 2016 8:38:19 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dfile.encoding=Cp1252
jan 12, 2016 8:38:19 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFORMAÇÕES: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.8.0_40\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_66/bin/server;C:/Program Files/Java/jre1.8.0_66/bin;C:/Program Files/Java/jre1.8.0_66/lib/amd64;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Java\jdk1.8.0_40;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.3 & MySQL Utilities 1.5.3 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.3 & MySQL Utilities 1.5.3 1.5\Doctrine extensions for PHP\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Wilson\Programando\Area\eclipse;;.
jan 12, 2016 8:38:19 PM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["http-nio-8080"]
jan 12, 2016 8:38:20 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFORMAÇÕES: Using a shared selector for servlet write/read
jan 12, 2016 8:38:20 PM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["ajp-nio-8009"]
jan 12, 2016 8:38:20 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFORMAÇÕES: Using a shared selector for servlet write/read
jan 12, 2016 8:38:20 PM org.apache.catalina.startup.Catalina load
INFORMAÇÕES: Initialization processed in 796 ms
jan 12, 2016 8:38:20 PM org.apache.catalina.core.StandardService startInternal
INFORMAÇÕES: Starting service Catalina
jan 12, 2016 8:38:20 PM org.apache.catalina.core.StandardEngine startInternal
INFORMAÇÕES: Starting Servlet Engine: Apache Tomcat/8.0.24
jan 12, 2016 8:38:22 PM org.apache.jasper.servlet.TldScanner scanJars
INFORMAÇÕES: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
jan 12, 2016 8:38:22 PM com.sun.faces.config.ConfigureListener contextInitialized
INFORMAÇÕES: Inicializando Mojarra 2.2.10 ( 20150205-0906 https://svn.java.net/svn/mojarra~svn/tags/2.2.10@14334) para o contexto '/Portaria1'
jan 12, 2016 8:38:22 PM com.sun.faces.spi.InjectionProviderFactory createInstance
INFORMAÇÕES: JSF1048: Anotações PostConstruct/PreDestroy presentes.  Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
jan 12, 2016 8:38:23 PM org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 5.1.3.Final
jan 12, 2016 8:38:24 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init>
INFORMAÇÕES: Monitoring file:/C:/Users/Wilson/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Portaria1/WEB-INF/faces-config.xml for modifications
jan 12, 2016 8:38:24 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFORMAÇÕES: Running on PrimeFaces 5.2
jan 12, 2016 8:38:24 PM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["http-nio-8080"]
jan 12, 2016 8:38:24 PM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["ajp-nio-8009"]
jan 12, 2016 8:38:24 PM org.apache.catalina.startup.Catalina start
INFORMAÇÕES: Server startup in 4192 ms
jan 12, 2016 8:38:58 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute
ADVERTÊNCIA: #{registroVisitanteBean.consultar}: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
javax.faces.FacesException: #{registroVisitanteBean.consultar}: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
	at javax.faces.component.UIViewAction.broadcast(UIViewAction.java:562)
	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: javax.faces.el.EvaluationException: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:94)
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	... 28 more
Caused by: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
	at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
	... 29 more

jan 12, 2016 8:38:58 PM com.sun.faces.context.ExceptionHandlerImpl log
FATAL: JSF1073: javax.faces.FacesException obtido durante o processamento de INVOKE_APPLICATION 5: UIComponent-ClientId=, Message=#{registroVisitanteBean.consultar}: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
jan 12, 2016 8:38:58 PM com.sun.faces.context.ExceptionHandlerImpl log
FATAL: #{registroVisitanteBean.consultar}: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
javax.faces.FacesException: #{registroVisitanteBean.consultar}: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:89)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: javax.faces.FacesException: #{registroVisitanteBean.consultar}: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
	at javax.faces.component.UIViewAction.broadcast(UIViewAction.java:562)
	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
	... 24 more
Caused by: javax.faces.el.EvaluationException: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:94)
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	... 28 more
Caused by: javax.el.PropertyNotFoundException: /RegistroPortaria.xhtml @16,62 action="#{registroVisitanteBean.consultar}": Target Unreachable, identifier 'registroVisitanteBean' resolved to null
	at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
	... 29 more



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
<h:head>
  <meta charset="UTF-8"/>
  <title>Sistema de Portaria</title>
  
  <h:outputStylesheet library="Aprendendo" name="estilo.css" />
</h:head>

<h:body>

<f:metadata>
	<f:viewAction action="#{registroVisitanteBean.consultar}" />
</f:metadata>

<h:form id="frm">

	<p:growl id="msgs-geral" />

	<header>
		<h:graphicImage library="algaworks" name="logo.png" />
	</header>
	
	<div id="conteudo">
		<div style="text-align: center; margin-bottom: 15px">
			<p:commandButton value="Novo visitante" 
				action="#{registroVisitanteBean.novo}"
				update="painel-dialogo" process="@this"
				onsuccess="PF('novoVisitanteDialog').show(); return false;">
				<p:resetInput target="novo-visitante-dialog" />
			</p:commandButton>
		</div>
			
		<p:dataGrid value="#{registroVisitanteBean.todosVisitantes}" var="visitante"
			columns="3" layout="grid" id="grid-visitantes">
			<p:panel header="#{visitante.nome}" style="text-align: center">
				<h:graphicImage value="/foto-visitante?visitante=#{visitante.id}"/>
				<h:outputText value="#{visitante.dataVisita}">
					<f:convertDateTime pattern="HH:mm:ss" timeZone="America/Sao_Paulo" />
				</h:outputText>
			</p:panel>
		</p:dataGrid>
	</div>
	
	<p:dialog widgetVar="novoVisitanteDialog" header="Novo visitante"
		resizable="false" modal="true" dynamic="true" id="novo-visitante-dialog">
		
		<h:panelGroup id="painel-dialogo">
			<p:messages id="msgs-dialogo" />
			
			<h:panelGrid columns="2">
				<h:panelGroup style="text-align: center" layout="block" id="painel-foto">
					<p:photoCam widgetVar="camera" width="300" format="jpeg"
						listener="#{fotoCameraBean.aoCapturarFoto}"
						update="painel-foto botao-registrar"
						rendered="#{not fotoCameraBean.fotoCapturada}" />
					<p:commandLink value="Capturar foto!"
						onclick="PF('camera').capture(); return false;"
						rendered="#{not fotoCameraBean.fotoCapturada}" />
					
					<p:graphicImage value="#{fotoCameraBean.fotoContent}"
						cache="false" rendered="#{fotoCameraBean.fotoCapturada}" />
				</h:panelGroup>
			
				<h:panelGrid columns="1" style="margin-left: 10px">
					<p:outputLabel value="Nome" for="nome" />
					<p:inputText size="30" id="nome" value="#{registroVisitanteBean.visitante.nome}" />
					
					<p:outputLabel value="CPF" for="cpf" />
					<p:inputMask size="14" mask="999.999.999-99" id="cpf" 
						value="#{registroVisitanteBean.visitante.cpf}" />
					
					<p:outputLabel value="Telefone" for="telefone" />
					<p:inputText size="20" id="telefone" 
						value="#{registroVisitanteBean.visitante.telefone}" />
					
					<p:commandButton value="Registrar" icon="fa fa-save"
						id="botao-registrar"
						update="painel-dialogo grid-visitantes"
						action="#{registroVisitanteBean.adicionar}"
						disabled="#{not fotoCameraBean.fotoCapturada}" />
				</h:panelGrid>
			</h:panelGrid>
		</h:panelGroup>
		
	</p:dialog>

</h:form>

</h:body>

</html>




package com.algaworks.portaria.controller;

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

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;

import org.primefaces.context.RequestContext;

import com.algaworks.portaria.model.Visitante;
import com.algaworks.portaria.repository.Visitantes;

@Named
@ViewScoped
public class RegistroVisitanteBean implements Serializable {

	private static final long serialVersionUID = 1L;

	@Inject
	private FotoCameraBean fotoCamera;
	
	@Inject
	private Visitantes visitantes;
	
	private Visitante visitante;
	
	private List<Visitante> todosVisitantes;

	public void consultar() {
		todosVisitantes = visitantes.todos();
	}
	
	public void novo() {
		visitante = new Visitante();
		fotoCamera.limpar();
	}
	
	public void adicionar() {
		visitante.setDataVisita(new Date());
		visitante.setFoto(fotoCamera.getFotoBytes());
		
		visitantes.guardar(visitante);
		
		consultar();
		
		FacesMessage msg = new FacesMessage("Visitante registrado!");
		FacesContext.getCurrentInstance().addMessage(null, msg);
		
		RequestContext.getCurrentInstance().execute("PF('novoVisitanteDialog').hide()");
		RequestContext.getCurrentInstance().update("frm:msgs-geral");
	}
	
	public Visitante getVisitante() {
		return visitante;
	}

	public List<Visitante> getTodosVisitantes() {
		return todosVisitantes;
	}
	
}


package com.algaworks.portaria.model;

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.br.CPF;

@Entity
public class Visitante implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue
	private Long id;

	@NotEmpty
	@Column(nullable = false, length = 80)
	private String nome;
	
	@NotEmpty
	@CPF
	@Column(nullable = false, length = 14)
	private String cpf;
	
	@Column(length = 20)
	private String telefone;
	
	@NotNull
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "data_visita")
	private Date dataVisita;
	
	@NotNull
	@Lob
	@Column(nullable = false)
	private byte[] foto;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}

	public Date getDataVisita() {
		return dataVisita;
	}

	public void setDataVisita(Date dataVisita) {
		this.dataVisita = dataVisita;
	}

	public byte[] getFoto() {
		return foto;
	}

	public void setFoto(byte[] foto) {
		this.foto = foto;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Visitante other = (Visitante) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}

Responder

Posts

13/01/2016

Ronaldo Filho

Bom dia Grande.

Grande, tu criou o mapeamento para a requisição que foi feita, provavelmente seja apenas a configuração do mapeamento, mapeamento como request mapping entre outros.
Responder
×
+1 DevUP
Acesso diário, +1 DevUP
Parabéns, você está investindo na sua carreira