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

Invalid Error marker when using Hibernate @Type annotation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.2.Final
    • 3.3.0.CR1
    • hibernate
    • None

      We're seeing invalid error markers when using the Hibernate @Type annotation where the type value we're specifying isn't actually a Class name. This looks like a bug in JBoss Tools (I have the new Candidate Release installed).

      Sample class:

      import javax.persistence.Entity;
      import javax.persistence.Id;
       
      import org.hibernate.annotations.Type;
       
      @Entity
      public class TestEntity
      {
        @Id
        private Long id;
       
        @Type(type = "yes_no")
        private Boolean flag;
      }
      

      The error marker states 'Type class "yes_no" could not be found.' but this is actually valid.

      I did find some similar cases (JBIDE-11364, JBIDE-11368) in the bug tracker but not one that described this issue exactly.

            nivologd@gmail.com Denis Golovin (Inactive)
            cpuffalt Corey Puffalt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: