Hi Guys
I would like create Entity (Active Objects) with unlimited String, but it looks
@StringLength(value=StringLength.UNLIMITED) not working for last version AO.
What can I use or how to solve it to get TEXT instead for VARCHAR(255) in database.
Thanks
Mik
Community moderators have prevented the ability to post new answers.
Hi Guys, many thanks for your answers.
In my case this is total clean/new solusion, nothing to update. Just first insert, which creating table with column VARCHAR (255) even if the first string I'm trying to insert is much bigger.
I'm using AO vers. 0.9.6, (Postgres as database) maybe should I use older one?
Regards
Mik
Mik, 0.9.6 is ancient version from 2011. I think you should use 1.1.0. Please have a look on a maven repo: https://maven.atlassian.com/content/groups/public/com/atlassian/activeobjects/activeobjects-plugin/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if your table is empty @Volodymyr Krupach solution should be enough, but if you have it populated with data you don't want to lose then you should write an active objects upgrade task which will in fact create new collumn of typ TEXT and copy data from your VARCHAR(255) column to the new one. Anyway check this out: Upgrading your plugin and handling data model updates and look at that issue AO-273
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mik,
Try to change column (i.e. field) name. AO framework can not change field types: if you initially declared the column as some limited string and later changed to UNLIMITED, it will stay as string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.