2 Replies Latest reply on Jul 21, 2005 7:58 AM by tsedge

    Mapping a boolean field to a 'T'/'F' CHAR(1) column

    tsedge

      Hi,

      How can I map a boolean field to a 'T'/'F' CHAR(1) column with EJB3 annotations + JBOSS/Hibernate?

      If I try a basic mapping with:


      private boolean disabled;

      @Column(name = "DISABLED")
      public boolean isDisabled()
      {
      return disabled;
      }

      Then I just get a load of "Fail to convert to internal representation" Oracle errors.

      Many thanks,


      Tom.