2 Replies Latest reply on Mar 31, 2008 4:20 AM by mars1412

    truncation of data in entity bean

    cesar_takaide

      Hello again.
      I'm trying to use a entity bean to maintain a table, but i want to truncate data if it's longer than column's table definition. The annotation i'm using in the entity bean is :
      @Column(name = "descripcion", length=100)
      private String descripcion;

      In theory, Jboss should truncate the data to 100 characters if longer, but it didnt. Jboss isnt truncating anything. I dont know if the attribute of length must be used for that, for size limitations or is intended for another thing.
      Thank you very much for your help.