title: Annotation not allowed here - Intellij
body: <p>I have created simple spring boot application in Intellij.</p>
  
  <p>I have created Entity Class in that when i write @Id, @Column annotations it is giving error saying annotations not allowed here.</p>
  
  <p>i tried so many different post from stack overflow but my problem not got resolved.</p>
  
  <p>can someone please help on this.</p>
  
  <pre><code>package com.ajinkya.h2demo;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.Id;
  import javax.persistence.Table;
  
  @Entity
  @Table(name = "ROOM")
  public class Room {
      @Id
      @Column(name = "ROOM_ID")
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2IaOV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2IaOV.jpg" alt="enter image description here"></a></p>