Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adjusting characteg length with gorm

 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it is not. For good reason. Database structure modifications shouldn't occur that way. A DBA would have your head.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic