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

No quickfix for import @Parameter in @Typedef

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 3.3.0.Beta3
    • 3.3.0.Beta3
    • hibernate
    • None
    • Hide

      EXECUTE: Create JPA or Java project with Hibernate 3 or 4
      EXECUTE: Add code in description
      EXECUTE: Use Quickfix on @Parameter annotation
      ASSERT: Import quick fix should be offered
      If this is not a bug it could be at least feature request

      Show
      EXECUTE: Create JPA or Java project with Hibernate 3 or 4 EXECUTE: Add code in description EXECUTE: Use Quickfix on @Parameter annotation ASSERT: Import quick fix should be offered If this is not a bug it could be at least feature request

      Use this code:
      package org.jira;

      import javax.persistence.Entity;
      import javax.persistence.Id;

      import org.hibernate.annotations.Index;
      //import org.hibernate.annotations.Parameter;
      import org.hibernate.annotations.Type;
      import org.hibernate.annotations.TypeDef;

      @Entity(name="EntityWithType")
      @TypeDef(name="encryptedPasswor", typeClass=org.jira.EncryptedStringType.class,
      parameters = {
      @Parameter(name="password", value="blah blah blah.")
      })
      public class EntityWithType

      { @Id private int id; @Index(name = "rrr") @Type(type = "encryptedPasswor") private StringBuilder typeClass; }

      There is no quick fix import for @Parameter. I assue this scenario doesn't work also for other inner Hibernate annotations

            dgeraskov Dmitry Geraskov (Inactive)
            jpeterka_jira Jiri Peterka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: