12 Replies Latest reply: Mar 21, 2012 8:57 AM by John Franey RSS

    org.hibernate.annotations.Type and jboss tools

    John Franey Novice

      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