Loading ...
Sorry, an error occurred while loading the content.

16796Annotations Hibernate (annotations are not supported in -source 1.4)???

Expand Messages
  • marcio cunha
    Jul 2, 2006
    • 0 Attachment
      Ola ,
      Depois de baixar o Hibernate Annotations e fui em projeto>>Libraries >>
      add/jar folder e adicionei o hibernate-annotations.jar ae apareceu as
      bibliotecas

      import org.hibernate.cfg.AnnotationConfiguration;
      import org.hibernate.cfg.Configuration;

      ae criei a classe Cliente.java:
      package dao;

      /**
      *
      * @author a
      */
      import java.util.HashSet;
      import java.util.Set;
      import javax.persistence.*;
      import org.hibernate.cfg.AnnotationConfiguration;
      import org.hibernate.cfg.Configuration;

      @Entity
      public class Cliente {
      @Id @GeneratedValue()
      private int idCliente;
      private String Nome;

      /** Creates a new instance of Cliente */
      public Cliente() {
      }

      }

      mas na hora de compilar aparece o erro:

      C:\Documents and Settings\a\Tcc\src\java\dao\Cliente.java:22: annotations
      are not supported in -source 1.4
      (try -source 1.5 to enable annotations)
      @Entity
      1 error
    • Show all 9 messages in this topic