Commit 6fffa371 authored by Valentin Suhnjov's avatar Valentin Suhnjov

Merge branch 'releases/release-0.11.0' into ria/master

parents 61af47c9 bae51d4d
......@@ -5,7 +5,7 @@
<groupId>ee.eesti.riha</groupId>
<artifactId>rest</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<packaging>war</packaging>
......
......@@ -87,12 +87,12 @@ CREATE TABLE riha.kind
name character varying(150) NOT NULL, -- Ressursi liigi nimetus
json_content jsonb,
state character(1) DEFAULT 'C'::bpchar, -- Olek
start_date timestamp without time zone, -- Ressursi tüübi kehtivuse alguse ajamoment
end_date timestamp without time zone, -- Ressursi tüübi kehtivuse lõpu ajamoment
start_date timestamp with time zone, -- Ressursi tüübi kehtivuse alguse ajamoment
end_date timestamp with time zone, -- Ressursi tüübi kehtivuse lõpu ajamoment
creator character varying(150), -- Kirje tekitaja isikukood
modifier character varying(150), -- Kirje muutja isikukood
creation_date timestamp without time zone, -- Kirje loomise ajamoment
modified_date timestamp without time zone, -- Kirje muutmise ajamoment
creation_date timestamp with time zone, -- Kirje loomise ajamoment
modified_date timestamp with time zone, -- Kirje muutmise ajamoment
CONSTRAINT pk_kind PRIMARY KEY (kind_id)
)
WITH (
......@@ -128,12 +128,12 @@ CREATE TABLE riha.main_resource
main_resource_parent_id integer, -- Hierarhilise ressursi puhul on siin näidatud vanema ID
kind character varying(150), -- Ressursi liik (infosystem, classifier, service, dictionary, xmlresource vms.)
state character(1), -- Ressursi olek (C-current, O-old, T-temporary, D-deleted jms.) Vaikimisi 'C'.
start_date timestamp without time zone, -- Käesoleva versiooni kehtivuse algus
end_date timestamp without time zone, -- Käesoleva versiooni kehtivuse lõpp
start_date timestamp with time zone, -- Käesoleva versiooni kehtivuse algus
end_date timestamp with time zone, -- Käesoleva versiooni kehtivuse lõpp
creator character varying(150), -- Kirje loonud isiku isikukood või muu identifikaator
modifier character varying(150), -- Viimati kirjet muutnud isiku isikukood või muu identifikaator
creation_date timestamp without time zone, -- Kirje loomise ajahetk.
modified_date timestamp without time zone, -- Kirje viimati muutmise ajahetk.
creation_date timestamp with time zone, -- Kirje loomise ajahetk.
modified_date timestamp with time zone, -- Kirje viimati muutmise ajahetk.
old_id integer,
field_name character varying(150),
kind_id integer, -- Ressursi liik (infosystem, classifier, service, dictionary, xmlresource vms.).
......@@ -223,12 +223,12 @@ CREATE TABLE riha.data_object
data_object_parent_id integer, -- Hierarhilise andmeobjekti puhul on siin vanema ID
kind character varying(150), -- Andmeobjekti tüüp (databse, table, field, json, input, output jne)
state character(1), -- Andmeobjekti staatus (C-current, O-old, T-temporary, D-deleted jne)
start_date timestamp without time zone, -- Andmeobjekti versiooni kehtivuse algus
end_date timestamp without time zone, -- Andmeobjekti versiooni kehtivuse lõpp
start_date timestamp with time zone, -- Andmeobjekti versiooni kehtivuse algus
end_date timestamp with time zone, -- Andmeobjekti versiooni kehtivuse lõpp
creator character varying(150) NOT NULL, -- Kirje loonud isiku isikukood või muu identifikaator
modifier character varying(150), -- Kirjet viimati muutnud isiku isikukood või muu identifikaator
creation_date timestamp without time zone NOT NULL, -- Kirje loomise ajamoment.
modified_date timestamp without time zone, -- Kirje viimase muutmise ajamoment.
creation_date timestamp with time zone NOT NULL, -- Kirje loomise ajamoment.
modified_date timestamp with time zone, -- Kirje viimase muutmise ajamoment.
field_name character varying(150),
old_id integer,
kind_id integer,
......@@ -297,12 +297,12 @@ CREATE TABLE riha.document
mime character varying(150), -- MIME tüüp, kui see on teada
json_content jsonb, -- Dokumendi info esitatuna json struktuurina.
state character(1), -- Dokumendi staatus (C-current, D-deleted, O-old, T-temporary jne)
start_date timestamp without time zone, -- Dokumendi kehtivuse algus
end_date timestamp without time zone, -- Dokumendi kehtivuse lõpp
start_date timestamp with time zone, -- Dokumendi kehtivuse algus
end_date timestamp with time zone, -- Dokumendi kehtivuse lõpp
creator character varying(150), -- Kirje loonud isiku isikukood või muu identifikaator
modifier character varying(150), -- Kirjet viimati muutnud isiku isikukood või muu identifikaator
creation_date timestamp without time zone, -- Kirje loomise ajamoment.
modified_date timestamp without time zone, -- Kirje viimase muutmise ajamoment.
creation_date timestamp with time zone, -- Kirje loomise ajamoment.
modified_date timestamp with time zone, -- Kirje viimase muutmise ajamoment.
main_resource_id integer,
data_object_id integer,
field_name character varying(150),
......@@ -347,8 +347,8 @@ CREATE TABLE riha.comment
(
comment_id integer NOT NULL, -- Kommentaari unikaalne ID.
comment_parent_id integer, -- Kui on tegemist hierarhilise kommentaariumiga, siis viitab vanemale
creation_date timestamp without time zone, -- Kirje tekitamise ajamoment.
modified_date timestamp without time zone, -- Kirje viimase muutmise ajamoment.
creation_date timestamp with time zone, -- Kirje tekitamise ajamoment.
modified_date timestamp with time zone, -- Kirje viimase muutmise ajamoment.
infosystem_uuid UUID,
comment VARCHAR,
author_name VARCHAR(255) NULL,
......@@ -359,6 +359,7 @@ CREATE TABLE riha.comment
type VARCHAR(150) NULL,
title VARCHAR(255) NULL,
sub_type VARCHAR(150) NULL,
resolution_type VARCHAR(255) NULL,
CONSTRAINT pk_comment PRIMARY KEY (comment_id),
CONSTRAINT fk_comment_comment FOREIGN KEY (comment_parent_id)
REFERENCES riha.comment (comment_id) MATCH SIMPLE
......@@ -383,6 +384,7 @@ COMMENT ON COLUMN riha.comment.status IS 'Hinnangu staatus';
COMMENT ON COLUMN riha.comment.type IS 'Hinnangu tüüp';
COMMENT ON COLUMN riha.comment.title IS 'Hinnangu pealkiri';
COMMENT ON COLUMN riha.comment.sub_type IS 'Hinnangu alamtüüp';
COMMENT ON COLUMN riha.comment.resolution_type IS 'Hinnangu resolutsiooni tüüp';
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE riha.comment TO riha;
......@@ -393,7 +395,7 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE riha.comment TO riha;
CREATE TABLE riha.large_object
(
id integer NOT NULL,
creation_date timestamp without time zone,
creation_date timestamp with time zone,
data oid,
hash character varying(255),
length bigint,
......@@ -413,7 +415,7 @@ CREATE TABLE riha.file_resource
(
uuid uuid NOT NULL,
content_type character varying(255),
creation_date timestamp without time zone,
creation_date timestamp with time zone,
name character varying(255),
large_object_id integer NOT NULL,
CONSTRAINT file_resource_pkey PRIMARY KEY (uuid),
......@@ -447,9 +449,9 @@ CREATE TABLE riha.main_resource_relation
main_resource_relation_id INTEGER NOT NULL
CONSTRAINT main_resource_relation_pkey
PRIMARY KEY,
creation_date TIMESTAMP,
creation_date TIMESTAMP WITH TIME ZONE,
infosystem_uuid UUID,
modified_date TIMESTAMP,
modified_date TIMESTAMP WITH TIME ZONE,
related_infosystem_uuid UUID,
type VARCHAR(255)
);
......
......@@ -2,8 +2,8 @@ DROP VIEW IF EXISTS riha.main_resource_view CASCADE;
CREATE OR REPLACE VIEW riha.main_resource_view AS
SELECT DISTINCT ON (json_content ->> 'uuid')
*,
((main_resource.json_content #>> '{meta,creation_timestamp}' :: TEXT [])) :: TIMESTAMP AS j_creation_timestamp,
((main_resource.json_content #>> '{meta,update_timestamp}' :: TEXT [])) :: TIMESTAMP AS j_update_timestamp
((main_resource.json_content #>> '{meta,creation_timestamp}' :: TEXT [])) :: TIMESTAMP WITH TIME ZONE AS j_creation_timestamp,
((main_resource.json_content #>> '{meta,update_timestamp}' :: TEXT [])) :: TIMESTAMP WITH TIME ZONE AS j_update_timestamp
FROM riha.main_resource AS main_resource
ORDER BY json_content ->> 'uuid',
j_update_timestamp DESC NULLS LAST,
......@@ -20,4 +20,16 @@ CREATE OR REPLACE VIEW riha.main_resource_relation_view AS
FROM riha.main_resource_relation mrr
LEFT JOIN riha.main_resource_view infosystem ON (infosystem.json_content ->> 'uuid') = mrr.infosystem_uuid :: TEXT
LEFT JOIN riha.main_resource_view related_infosystem
ON (related_infosystem.json_content ->> 'uuid') = mrr.related_infosystem_uuid :: TEXT;
\ No newline at end of file
ON (related_infosystem.json_content ->> 'uuid') = mrr.related_infosystem_uuid :: TEXT;
-- DROP VIEW riha.comment_type_issue_view;
CREATE OR REPLACE VIEW riha.comment_type_issue_view AS
SELECT
issue.*,
infosystem.json_content ->> 'short_name' AS infosystem_short_name
FROM riha.comment issue
INNER JOIN riha.main_resource_view infosystem
ON (infosystem.json_content ->> 'uuid') = issue.infosystem_uuid :: TEXT
WHERE issue.type = 'ISSUE'
ORDER BY issue.comment_id;
\ No newline at end of file
-- DROP VIEW riha.comment_type_issue_view;
CREATE OR REPLACE VIEW riha.comment_type_issue_view AS
SELECT
issue.*,
infosystem.json_content ->> 'short_name' AS infosystem_short_name
FROM riha.comment issue
INNER JOIN riha.main_resource_view infosystem
ON (infosystem.json_content ->> 'uuid') = issue.infosystem_uuid :: TEXT
WHERE issue.type = 'ISSUE'
ORDER BY issue.comment_id;
\ No newline at end of file
-- optional session setting, can be skipped (though highly recommended to use to avoid any potential
-- time zone issues)
SET TIME ZONE 'Europe/Tallinn';
-- views must be dropped first as they fields types depend on parental tables
DROP VIEW IF EXISTS riha.main_resource_view CASCADE;
DROP VIEW IF EXISTS riha.main_resource_relation_view;
DROP VIEW IF EXISTS riha.comment_type_issue_view;
-- alter following fields types from 'TIMESTAMP WITHOUT TIME ZONE' to 'TIMESTAMP WITH TIME ZONE'
-- and keep current date values according to local time zone (Europe/Tallinn)
ALTER TABLE riha.comment ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.comment ALTER COLUMN modified_date TYPE TIMESTAMP WITH TIME ZONE
USING modified_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.data_object ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.data_object ALTER COLUMN modified_date TYPE TIMESTAMP WITH TIME ZONE
USING modified_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.data_object ALTER COLUMN start_date TYPE TIMESTAMP WITH TIME ZONE
USING start_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.data_object ALTER COLUMN end_date TYPE TIMESTAMP WITH TIME ZONE
USING end_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.document ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.document ALTER COLUMN modified_date TYPE TIMESTAMP WITH TIME ZONE
USING modified_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.document ALTER COLUMN start_date TYPE TIMESTAMP WITH TIME ZONE
USING start_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.document ALTER COLUMN end_date TYPE TIMESTAMP WITH TIME ZONE
USING end_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.file_resource ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.kind ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.kind ALTER COLUMN modified_date TYPE TIMESTAMP WITH TIME ZONE
USING modified_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.kind ALTER COLUMN start_date TYPE TIMESTAMP WITH TIME ZONE
USING start_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.kind ALTER COLUMN end_date TYPE TIMESTAMP WITH TIME ZONE
USING end_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.large_object ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.main_resource ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.main_resource ALTER COLUMN modified_date TYPE TIMESTAMP WITH TIME ZONE
USING modified_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.main_resource ALTER COLUMN start_date TYPE TIMESTAMP WITH TIME ZONE
USING start_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.main_resource ALTER COLUMN end_date TYPE TIMESTAMP WITH TIME ZONE
USING end_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.main_resource_relation ALTER COLUMN creation_date TYPE TIMESTAMP WITH TIME ZONE
USING creation_date AT TIME ZONE 'Europe/Tallinn';
ALTER TABLE riha.main_resource_relation ALTER COLUMN modified_date TYPE TIMESTAMP WITH TIME ZONE
USING modified_date AT TIME ZONE 'Europe/Tallinn';
-- Recreate all related views
CREATE OR REPLACE VIEW riha.main_resource_view AS
SELECT DISTINCT ON (json_content ->> 'uuid')
*,
((main_resource.json_content #>> '{meta,creation_timestamp}' :: TEXT [])) :: TIMESTAMP WITH TIME ZONE AS j_creation_timestamp,
((main_resource.json_content #>> '{meta,update_timestamp}' :: TEXT [])) :: TIMESTAMP WITH TIME ZONE AS j_update_timestamp
FROM riha.main_resource AS main_resource
ORDER BY json_content ->> 'uuid',
j_update_timestamp DESC NULLS LAST,
main_resource_id DESC;
CREATE OR REPLACE VIEW riha.main_resource_relation_view AS
SELECT
mrr.*,
infosystem.json_content ->> 'short_name' AS infosystem_short_name,
infosystem.json_content ->> 'name' AS infosystem_name,
related_infosystem.json_content ->> 'short_name' AS related_infosystem_short_name,
related_infosystem.json_content ->> 'name' AS related_infosystem_name
FROM riha.main_resource_relation mrr
LEFT JOIN riha.main_resource_view infosystem ON (infosystem.json_content ->> 'uuid') = mrr.infosystem_uuid :: TEXT
LEFT JOIN riha.main_resource_view related_infosystem
ON (related_infosystem.json_content ->> 'uuid') = mrr.related_infosystem_uuid :: TEXT;
CREATE OR REPLACE VIEW riha.comment_type_issue_view AS
SELECT
issue.*,
infosystem.json_content ->> 'short_name' AS infosystem_short_name
FROM riha.comment issue
INNER JOIN riha.main_resource_view infosystem
ON (infosystem.json_content ->> 'uuid') = issue.infosystem_uuid :: TEXT
WHERE issue.type = 'ISSUE'
ORDER BY issue.comment_id;
ALTER TABLE riha.comment ADD resolution_type VARCHAR(255) NULL;
-- DROP VIEW riha.comment_type_issue_view;
CREATE OR REPLACE VIEW riha.comment_type_issue_view AS
SELECT
issue.*,
infosystem.json_content ->> 'short_name' AS infosystem_short_name
FROM riha.comment issue
INNER JOIN riha.main_resource_view infosystem
ON (infosystem.json_content ->> 'uuid') = issue.infosystem_uuid :: TEXT
WHERE issue.type = 'ISSUE'
ORDER BY issue.comment_id;
\ No newline at end of file
......@@ -7,10 +7,7 @@ import java.util.Map;
import ee.eesti.riha.rest.logic.util.StringHelper;
import ee.eesti.riha.rest.model.*;
import ee.eesti.riha.rest.model.readonly.Asutus;
import ee.eesti.riha.rest.model.readonly.Isik;
import ee.eesti.riha.rest.model.readonly.Main_resource_relation_view;
import ee.eesti.riha.rest.model.readonly.Main_resource_view;
import ee.eesti.riha.rest.model.readonly.*;
import ee.eesti.riha.rest.util.PropsReader;
// TODO: Auto-generated Javadoc
......@@ -40,10 +37,12 @@ public final class Finals {
addClassRepresentingTable(Asutus.class);
addClassRepresentingTable(Main_resource_view.class);
addClassRepresentingTable(Main_resource_relation_view.class);
addClassRepresentingTable(Comment_type_issue_view.class);
TABLE_CLASS_MAP_READONLY.put(Isik.class.getSimpleName().toLowerCase(), Isik.class);
TABLE_CLASS_MAP_READONLY.put(Asutus.class.getSimpleName().toLowerCase(), Asutus.class);
TABLE_CLASS_MAP_READONLY.put(Main_resource_view.class.getSimpleName().toLowerCase(), Main_resource_view.class);
TABLE_CLASS_MAP_READONLY.put(Main_resource_relation_view.class.getSimpleName().toLowerCase(), Main_resource_relation_view.class);
TABLE_CLASS_MAP_READONLY.put(Comment_type_issue_view.class.getSimpleName().toLowerCase(), Comment_type_issue_view.class);
}
/**
......@@ -78,7 +77,7 @@ public final class Finals {
TABLE_CLASS_MAP.put(clazz.getSimpleName().toLowerCase(), clazz);
}
public static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
public static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ssZ";
public static final String OK = "ok";
public static final String KEY = "key";
// default limit for returned items
......
......@@ -73,6 +73,9 @@ public class Comment implements BaseModel {
@Column(name = "sub_type")
private String sub_type;
@Column(name = "resolution_type")
private String resolution_type;
/*
* (non-Javadoc)
*
......@@ -359,4 +362,12 @@ public class Comment implements BaseModel {
public void setSub_type(String sub_type) {
this.sub_type = sub_type;
}
public String getResolution_type() {
return resolution_type;
}
public void setResolution_type(String resolution_type) {
this.resolution_type = resolution_type;
}
}
package ee.eesti.riha.rest.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import ee.eesti.riha.rest.logic.Finals;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;
......@@ -20,6 +22,7 @@ public class FileResource {
@Type(type = "pg-uuid")
private UUID uuid;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = Finals.DATE_FORMAT)
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "creation_date")
private Date creationDate;
......
package ee.eesti.riha.rest.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import ee.eesti.riha.rest.logic.Finals;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
......@@ -22,6 +24,7 @@ public class LargeObject {
@Column(name = "id", updatable = false)
private int id;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = Finals.DATE_FORMAT)
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "creation_date")
private Date creationDate;
......
package ee.eesti.riha.rest.model.readonly;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.JsonObject;
import ee.eesti.riha.rest.logic.Finals;
import ee.eesti.riha.rest.model.BaseModel;
import ee.eesti.riha.rest.model.util.FieldIsPK;
import org.hibernate.annotations.Immutable;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import java.util.Date;
import java.util.UUID;
@Entity
@Table(name = "comment_type_issue_view")
@Immutable
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Comment_type_issue_view implements BaseModel {
@Id
@Column(name = "comment_id", updatable = false)
@FieldIsPK
private Integer comment_id;
@Column(name = "comment_parent_id")
private Integer comment_parent_id;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = Finals.DATE_FORMAT)
@Temporal(TemporalType.TIMESTAMP)
private Date creation_date;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = Finals.DATE_FORMAT)
@Temporal(TemporalType.TIMESTAMP)
private Date modified_date;
@Column(name = "infosystem_uuid")
@Type(type = "pg-uuid")
private UUID infosystem_uuid;
@Column(name = "comment")
private String comment;
@Column(name = "author_name")
private String author_name;
@Column(name = "author_personal_code")
private String author_personal_code;
@Column(name = "organization_name")
private String organization_name;
@Column(name = "organization_code")
private String organization_code;
@Column(name = "status")
private String status;
@Column(name = "type")
private String type;
@Column(name = "title")
private String title;
@Column(name = "sub_type")
private String sub_type;
@Column(name = "infosystem_short_name")
private String infosystem_short_name;
@Column(name = "resolution_type")
private String resolution_type;
public Integer getComment_id() {
return comment_id;
}
public void setComment_id(int comment_id) {
throw new UnsupportedOperationException();
}
public Integer getComment_parent_id() {
return comment_parent_id;
}
public void setComment_parent_id(int comment_parent_id) {
throw new UnsupportedOperationException();
}
public UUID getInfosystem_uuid() {
return infosystem_uuid;
}
public void setInfosystem_uuid(UUID infosystem_uuid) {
throw new UnsupportedOperationException();
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
throw new UnsupportedOperationException();
}
public String getAuthor_name() {
return author_name;
}
public void setAuthor_name(String author_name) {
throw new UnsupportedOperationException();
}
public String getAuthor_personal_code() {
return author_personal_code;
}
public void setAuthor_personal_code(String author_personal_code) {
throw new UnsupportedOperationException();
}
public String getOrganization_name() {
return organization_name;
}
public void setOrganization_name(String organization_name) {
throw new UnsupportedOperationException();
}
public String getOrganization_code() {
return organization_code;
}
public void setOrganization_code(String organization_code) {
throw new UnsupportedOperationException();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
throw new UnsupportedOperationException();
}
public String getType() {
return type;
}
public void setType(String type) {
throw new UnsupportedOperationException();
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
throw new UnsupportedOperationException();
}
public String getSub_type() {
return sub_type;
}
public void setSub_type(String sub_type) {
throw new UnsupportedOperationException();
}
public String getInfosystem_short_name() {
return infosystem_short_name;
}
public void setInfosystem_short_name(String infosystem_short_name) {
throw new UnsupportedOperationException();
}
@Override
public int callGetId() {
return comment_id;
}
@Override
public void callSetId(int id) {
throw new UnsupportedOperationException();
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public String getUri() {
return null;
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public void setUri(String uri) {
throw new UnsupportedOperationException();
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public JsonObject getJson_content() {
return null;
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public void setJson_content(JsonObject json_content) {
throw new UnsupportedOperationException();
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public String getCreator() {
return null;
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public void setCreator(String creator) {
throw new UnsupportedOperationException();
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public String getModifier() {
return null;
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public void setModifier(String modifier) {
throw new UnsupportedOperationException();
}
@Override
public Date getCreation_date() {
return creation_date;
}
@Override
public void setCreation_date(Date creation_date) {
this.creation_date = creation_date;
}
@Override
public Date getModified_date() {
return modified_date;
}
@Override
public void setModified_date(Date modified_date) {
this.modified_date = modified_date;
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public String getKind() {
return null;
}
/**
* @deprecated not used anymore and will be removed in the future
*/
@Override
@Deprecated
@Transient
public void setKind(String kind) {
throw new UnsupportedOperationException();
}
public String getResolution_type() {
return resolution_type;
}
public void setResolution_type(String resolution_type) {
this.resolution_type = resolution_type;
}
}
......@@ -41,6 +41,7 @@
<value>ee.eesti.riha.rest.model.readonly.Asutus</value>
<value>ee.eesti.riha.rest.model.readonly.Main_resource_view</value>
<value>ee.eesti.riha.rest.model.readonly.Main_resource_relation_view</value>
<value>ee.eesti.riha.rest.model.readonly.Comment_type_issue_view</value>
</list>
</property>
<property name="hibernateProperties">
......