JBoss Community

org.hibernate.annotations.Type and jboss tools

created by John Franey in JBoss Tools - View the full discussion

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:

 

 

DescriptionResourcePathLocationType
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 91JPA 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;

 

 

 

DescriptionResourcePathLocationType
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/xxxline 172JPA 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

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community