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

submodel connection type mapping changed to string

parent f047b9f8
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"
......@@ -6,6 +6,8 @@ import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......@@ -63,6 +65,7 @@ public abstract class SubmodelConnection implements Serializable {
/**
* Type of the connection.
*/
@Enumerated(EnumType.STRING)
private SubmodelType type;
/**
......
-- change in layout
alter table submodel_connection_table add column type_string varchar(31);
update submodel_connection_table set type_string='DOWNSTREAM_TARGETS' where type=0;
update submodel_connection_table set type_string='PATHWAY' where type=1;
update submodel_connection_table set type_string='UNKNOWN' where type=2;
alter table submodel_connection_table drop column type;
alter table submodel_connection_table rename column type_string to type;
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