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"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.0.Beta2
    • Fix Version/s: 3.3.0.M1
    • Component/s: hibernate
    • Labels:
      None
    • Release Notes Text:
      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(); }

      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dgeraskov Dmitry Geraskov
                Reporter:
                vyemialyanchyk Vitali Yemialyanchyk
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: