[jbosstools-issues] [JBoss JIRA] (JBIDE-11364) JPA: Wrong validation of type/typedef class hierarchy
Dmitry Geraskov (JIRA)
jira-events at lists.jboss.org
Wed Mar 21 08:35:47 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-11364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678302#comment-12678302 ]
Dmitry Geraskov edited comment on JBIDE-11364 at 3/21/12 8:34 AM:
------------------------------------------------------------------
To test I used:
{code:title=EntityWithType.java|borderStyle=solid}
@Entity(name="EntityWithType")
@TypeDef(name="encryptedPasswor", typeClass=org.jasypt.hibernate.type.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;
}
{code}
was (Author: dgeraskov):
To test I used:
{code.title=EntityWithType.java|borderStyle=solid}
@Entity(name="EntityWithType")
@TypeDef(name="encryptedPasswor", typeClass=org.jasypt.hibernate.type.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;
}
{code}
> JPA: Wrong validation of type/typedef class hierarchy
> -----------------------------------------------------
>
> Key: JBIDE-11364
> URL: https://issues.jboss.org/browse/JBIDE-11364
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 3.3.0.Beta1
> Reporter: Dmitry Geraskov
> Assignee: Dmitry Geraskov
> Fix For: 3.3.0.Beta3
>
>
> See https://community.jboss.org/message/725094#725094
> org.jasypt.hibernate.type.EncryptedStringType extends org.jasypt.hibernate.type.AbstractEncryptedAsStringType which implements UserType, ParameterizedType. So no validation error should appear.
> To reproduce need to remove hibernate3.jar from class path.
--
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