This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Groovy and the fly likes adjusting characteg length with gorm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "adjusting characteg length with gorm" Watch "adjusting characteg length with gorm" New topic

adjusting characteg length with gorm

liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
Hello everyone,
I'd like to ask if anyone tried adjusting character length on a db column. I have a situation where a string input could be as long as combined lengths of all strings in a static array, and all needs to fit into one field. I know this doesn't sound that good, but is it at all possible to increase, via gorm, the character length of the db column on the fly?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

No, it is not. For good reason. Database structure modifications shouldn't occur that way. A DBA would have your head.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: adjusting characteg length with gorm
Similar Threads
Standalone GORM
NX:which class should i apply to access db?
Jboss 4.0.5GA generating additional column in the DB table for relationships
Hibernate mapping oracle char
DB2 CHARACTER datatype issue in JPA