Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8028

Add JPA annotations: @Id & @GeneratedValue should not be generated for "static" & "final"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.M1
    • 3.2.0.Beta2
    • hibernate
    • None
    • Now static or final fields are not annotated/maped at all.

    Description

      this is test example:

      package test;

      import java.io.Serializable;
      import javax.persistence.*;

      /**

      • Entity implementation class for Entity: BigTest
        *
        */
        @Entity

      public class BigTest implements Serializable {

      private static final long serialVersionUID = 1L;

      public BigTest()

      { super(); }

      }

      Attachments

        Activity

          People

            dgeraskov Dmitry Geraskov (Inactive)
            vyemialyanchyk_jira Vitali Yemialyanchyk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: