Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Active Objects @StringLength(value=StringLength.UNLIMITED) not working

Mik August 27, 2015

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

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Mik September 4, 2015

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

 

Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2015

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/

0 votes
Tomasz Stec
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2015

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

0 votes
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2015

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.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events