This content has been marked as final.
Show 2 replies
-
1. Re: truncation of data in entity bean
nitros Mar 28, 2008 10:37 PM (in response to cesar_takaide)Would it not be better if you use a setter method to truncate the data if longer than 100?
-
2. Re: truncation of data in entity bean
mars1412 Mar 31, 2008 4:20 AM (in response to cesar_takaide)Usually you don't want to just truncate data.
I'd recommend to use @Length(max=100) (then you don't need length=100 in the @Column annotation) - this way you could easily validate the input data.