[
https://issues.jboss.org/browse/JBIDE-11564?page=com.atlassian.jira.plugi...
]
Jiri Peterka closed JBIDE-11564.
--------------------------------
Ok, closing, I've created
https://bugs.eclipse.org/bugs/show_bug.cgi?id=376977,
let's see what will happen.
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.Beta3
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