[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - truncation of data in entity bean

cesar_takaide do-not-reply at jboss.com
Fri Mar 28 22:16:47 EDT 2008


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.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139800#4139800

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139800



More information about the jboss-user mailing list