0 Replies Latest reply on May 2, 2006 7:17 AM by Bjørn Børresen

    No identifier specified for entity

    Bjørn Børresen Newbie

      Hi, I get this exception when booting JBoss:

      13:06:53,312 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=Test-EJBModule.jar
      org.hibernate.AnnotationException: No identifier specified for entity: package.Pdfinstalledfonts
      at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:64 at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:25 at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile
      (..)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:33 at org.jboss.Main.boot(Main.java:18 at org.jboss.Main$1.run(Main.java:43 at java.lang.Thread.run(Thread.java:5913:06:53,437 INFO [EJB3Deployer] Deployed: file:/C:/Programfiler/jboss-4.0.3SP1/server/default/deploy/PorterTest-EJBModule.jar


      The problem is that I have specified @Id :
      @Entity
      @Table(name = "PDFINSTALLEDFONTS")
      public class Pdfinstalledfonts {
      
       @Id
       @Column(nullable = false)
       private BigDecimal id;
      
      (...)
      


      Anyone know what the problem might be?