Well, first I will ask the obvious. Why are you creating tables yourself? Are you using the mapping files and the hibernate configuration file? If so, there is a property you can set in the hibernate mapping file that looks like this:
Code:
<property name="hibernate.hbm2ddl.auto">update</property>
Just make sure it is set to update and hibernate will create it all for you. In addition, when defining your properties in your mapping files, be sure to set the "length" property of your mapped object's property.
Now, if you really, really want to do this manually (crazy in my book) then you can set the Column.setLength(n) property in your example code in this post.
If this helps, don't forget to rate! :)