1 Reply Latest reply on Oct 31, 2007 11:32 AM by pmuir

    SQLServer TEXT field type causes Hibernate error

    whafrog

      I used Seam to create a new project and generate entities from an existing database (MS SQLSERVER2000). One of the tables has a TEXT field type. The entity was correctly created by the seam generator to use a String for that variable, however on deployment the Hibernate validator throws an exception: "Wrong column type: my_text_field, expected: varchar(255)"

      Hibernate should map TEXT to a String. Where is Hibernate getting its information about this mapping and how can I change it?

      Thanks,

      Jon Wiest