[jbosstools-issues] [JBoss JIRA] (JBIDE-11564) No quickfix for import @Parameter in @Typedef

Jiri Peterka (JIRA) jira-events at lists.jboss.org
Tue Apr 17 07:42:18 EDT 2012


Jiri Peterka created JBIDE-11564:
------------------------------------

             Summary: No quickfix for import @Parameter in @Typedef
                 Key: JBIDE-11564
                 URL: https://issues.jboss.org/browse/JBIDE-11564
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: hibernate
    Affects Versions: 3.3.0.Beta3
         Environment: JBT 3.3.0.beta3-trunk, L64
            Reporter: Jiri Peterka
            Assignee: Dmitry Geraskov
             Fix For: 3.3.0.CR1
         Attachments: missing-import-proposal.png

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


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list