Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Spring FrameWork problemas apontado no Markers do Eclipse , o que acontece?

Boa Noite, galera , estou trabalhando em um Sistema Spring FrameWork e esta me dando esse problema , não sei se são dependencia mas se alguém tiver uma experiencia e quiser dar uma resposta eu agradeceria.

Logo abaixo está todos os Markers de Erro:

|Description|Resource|Path|Location|Type|
|---|---|---|---|---|
|Class "br.com.ciceroednilson.model.UsuarioModel" is listed in the persistence.xml file, but is not annotated|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 12|JPA Problem|
|Connection "DefaultDS" is not active. No validation will be done against the data source.|Sistema|| |JPA Problem|
|Column cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 16|Java Problem|
|Column cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 19|Java Problem|
|Column cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 22|Java Problem|
|Column cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 25|Java Problem|
|Column cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 28|Java Problem|
|Entity cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 11|Java Problem|
|EntityManager cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 32|Java Problem|
|EntityManager cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 48|Java Problem|
|EntityManager cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 60|Java Problem|
|EntityManager cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 72|Java Problem|
|EntityManager cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 86|Java Problem|
|EntityManager cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 98|Java Problem|
|GeneratedValue cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 15|Java Problem|
|GenerationType cannot be resolved to a variable|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 15|Java Problem|
|Id cannot be resolved to a type|UsuarioModel.java|/Sistema/src/main/java/br/com/ciceroednilson/model|line 14|Java Problem|
|javax.transaction.Transactional cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 45|Java Problem|
|javax.transaction.Transactional cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 57|Java Problem|
|javax.transaction.Transactional cannot be resolved to a type|UsuarioRepository.java|/Sistema/src/main/java/br/com/ciceroednilson/repository|line 81|Java Problem|
|SingularAttribute cannot be resolved to a 
3 respostas

Amigo, Acho que está faltando colocar annotation na sua classe UsuarioModel

Coloca @Entity em cima da classe , o spring usa a jpa

Thiago, obrigado por responder, segue o codigo do UsuarioModel.java

Coloquei o @Entity mas não adiantou , acho que pode ser alguma dependencia que o Eclipse não encontrou.

package br.com.ciceroednilson.model;

import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;

@Generated(value="Dali", date="2019-11-29T21:41:10.252-0200")
@StaticMetamodel(UsuarioModel.class)
@Entity
public class UsuarioModel_ {
    public static volatile SingularAttribute<UsuarioModel, Integer> codigo;
    public static volatile SingularAttribute<UsuarioModel, String> nome;
    public static volatile SingularAttribute<UsuarioModel, String> login;
    public static volatile SingularAttribute<UsuarioModel, String> senha;
    public static volatile SingularAttribute<UsuarioModel, Boolean> ativo;
}
solução!

Thiago , faltava dependencia do JPA, deve estar faltando mais , mas já otimizou bastante os erros:

Até mais ;)

dependency>
            <groupId>org.hibernate.javax.persistence</groupId>
            <artifactId>hibernate-jpa-2.1-api</artifactId>
            <version>1.0.0.Final</version>
        </dependency>