With jboss tools in eclipse I get the following false errors when I annotate using hibernate's TypeDef and Type annotations.
Code:
@TypeDef(name="encryptedPassword", typeClass=org.jasypt.hibernate.type.EncryptedStringType.class,
parameters = {
@Parameter(name="password", value="blah blah blah.")
})
Error:
Description | Resource | Path | Location | Type |
Type class "org.jasypt.hibernate.type.EncryptedStringType" should implement one of interfaces "org.hibernate.type.Type","org.hibernate.usertype.UserType", "org.hibernate.usertype.CompositeUserType", "org.hibernate.usertype.UserCollectionType". | zzzz.java | /xxxx/src/main/java/... | line 91 | JPA Problem |
Class Hierarchy: jasypt's EncryptedStringType extends jasypt's AbstractEncryptedAsStringType which implements hibernate's UserType.
Code:
@Type(type="org.joda.time.contrib.hibernate.PersistentDateTime")
private DateTime startTime;
Description | Resource | Path | Location | Type |
Type class "org.joda.time.contrib.hibernate.PersistentDateTime" should implement one of interfaces "org.hibernate.type.Type","org.hibernate.usertype.UserType", "org.hibernate.usertype.CompositeUserType", "org.hibernate.usertype.UserCollectionType". | yyyy.java | /xxxxx/src/main/java/xxx | line 172 | JPA Problem |
Class Hierarchy: joda time's PersistentDateTime implements hibernate's EnhancedUserType which extends UserType.
What am I doing wrong?
jboss by redhat, Hibernate tools: 3.4.0v20120307-2104-H60-Beta1
jboss by redhat, jboss as tools: 2.3.0.v20120308-1629-H87-Beta1
Indigo Service Release 2 Build id: 20120216-1857