Skip to content
Snippets Groups Projects
Commit d07d6c57 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

arrowLineType enum mapping changed to string

parent 73dafce9
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!472Resolve "Implement Hibernate naming strategy"
...@@ -50,6 +50,7 @@ public class ArrowTypeData implements Serializable { ...@@ -50,6 +50,7 @@ public class ArrowTypeData implements Serializable {
/** /**
* Defines type of the line used to draw arrow end. * Defines type of the line used to draw arrow end.
*/ */
@Enumerated(EnumType.STRING)
private LineType arrowLineType; private LineType arrowLineType;
/** /**
......
alter table arrow_type_data add column arrow_line_type_string varchar(31);
update arrow_type_data set arrow_line_type_string='SOLID' where arrow_line_type=0;
update arrow_type_data set arrow_line_type_string='SOLID_BOLD' where arrow_line_type=1;
update arrow_type_data set arrow_line_type_string='DASH_DOT_DOT' where arrow_line_type=2;
update arrow_type_data set arrow_line_type_string='DASH_DOT' where arrow_line_type=3;
update arrow_type_data set arrow_line_type_string='DASHED' where arrow_line_type=4;
update arrow_type_data set arrow_line_type_string='DOTTED' where arrow_line_type=5;
update arrow_type_data set arrow_line_type_string='DASHED_BOLD' where arrow_line_type=6;
update arrow_type_data set arrow_line_type_string='DOUBLE' where arrow_line_type=7;
alter table arrow_type_data drop column arrow_line_type;
alter table arrow_type_data rename column arrow_line_type_string to arrow_line_type;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment