visitor) {
- visitor.accept(c);
- if (c instanceof HasComponents) {
- for (Component child : ((HasComponents) c)) {
- walkComponentTree(child, visitor);
- }
- }
- }
-}
+package com.validation.manager.core;
+
+import com.vaadin.data.Property;
+import com.vaadin.ui.Component;
+import com.vaadin.ui.HasComponents;
+import com.vaadin.ui.UI;
+import java.io.UnsupportedEncodingException;
+import java.util.Collections;
+import java.util.Enumeration;
+import java.util.Locale;
+import java.util.ResourceBundle;
+import java.util.SortedSet;
+import java.util.TreeSet;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+/**
+ * {@code VaadinUtils} offers some utility functions for the
+ * Vaadin UI Framework.
+ *
+ * @author Javier Ortiz Bultron
+ * Based on code from: Ronald K. Muller
+ * https://gist.github.com/rmuller/10980706
+ */
+public final class VaadinUtils {
+
+ private static final Logger LOG
+ = Logger.getLogger(VaadinUtils.class.getSimpleName());
+
+ // Utility class
+ private VaadinUtils() {
+ }
+
+ /**
+ * Change all {@code Locale} dependant properties of the
+ * {@code com.vaadin.ui.Component}s within of the given component container
+ * (typically an {@link UI} or other top level layout component). If the
+ * specified {@code Locale} is the same as the current {@code Locale} of the
+ * component container, this method does nothing. Otherwise it'll go thru
+ * the components searching for it's component id. If it is in the resource
+ * bundle, it'll set it's caption to the right translated string.
+ *
+ *
+ * To use this method, do something like:
+ *
+ * public class MyUI extends UI {
+ *
+ * {@literal @}Override
+ * public void init(final VaadinRequest request) {
+ * // ... usual code
+ * // somewhere in the UI the user can change the "Form Locale". This code must
+ * // call myUI#setLocale(newLocale);
+ * }
+ *
+ * // ...
+ *
+ * }
+ *
+ * String key = "demo.tab.message";
+ * VerticalLayout vl = new VerticalLayout();
+ * Button b = new Button(key);
+ * vl.addComponent(b);
+ * ResourceBundle rb = ResourceBundle.getBundle(
+ * "resource.bundle",
+ * new Locale("es"));
+ * VaadinUtils.updateLocale(vl, new Locale("es"), rb);
+ *
+ * It also works with components implementing Property:
+ *
+ * VerticalLayout vl = new VerticalLayout();
+ * Label l = new Label(key);
+ * vl.addComponent(l);
+ * ResourceBundle rb = ResourceBundle.getBundle(
+ * "resource.bundle",
+ * new Locale("es"));
+ * VaadinUtils.updateLocale(vl, new Locale("es"), rb);
+ *
+ *
+ * @param ui The component container for which the {@code Locale} dependent
+ * component properties must be changed, never {@code null}
+ * @param locale The new {@code Locale}, never {@code null}
+ * @param rb The {@code ResourceBundle} for the specified {@code Locale},
+ * never {@code null}
+ */
+ public static void updateLocale(final HasComponents ui, final Locale locale,
+ final ResourceBundle rb) {
+
+ // locale may not be null, however the current UI Locale may be null!
+ if (locale.equals(ui.getLocale())) {
+ return;
+ }
+ final long time = System.currentTimeMillis();
+ walkComponentTree(ui, (Component c) -> {
+ String id = c.getId();
+ String caption;
+ if (c instanceof Property
+ && ((Property) c).getValue() instanceof String) {
+ caption = (String) ((Property) c).getValue();
+ } else {
+ caption = c.getCaption();
+ }
+ if (id != null && !id.trim().isEmpty()) {
+ if (rb.containsKey(id)) {
+ try {
+ c.setCaption(new String(rb.getString(id)
+ .getBytes("ISO-8859-1"), "UTF-8"));
+ }
+ catch (UnsupportedEncodingException ex) {
+ LOG.log(Level.SEVERE, null, ex);
+ }
+ }
+ } else if (caption != null && !caption.trim().isEmpty()) {
+ /**
+ * This is a more complex scenario where the caption uses more
+ * than one key for translation. Sort the keys in reverse so
+ * substitutions are correct.
+ */
+ final SortedSet ss = new TreeSet<>(Collections.reverseOrder());
+ for (Enumeration e = rb.getKeys(); e.hasMoreElements();) {
+ try {
+ String key = e.nextElement();
+ ss.add(key);
+ caption = caption.replaceAll(key, new String(rb.getString(key)
+ .getBytes("ISO-8859-1"), "UTF-8"));
+ }
+ catch (UnsupportedEncodingException ex) {
+ LOG.log(Level.SEVERE, null, ex);
+ }
+ }
+ if (c instanceof Property) {
+ ((Property) c).setValue(caption);
+ } else {
+ c.setCaption(caption);
+ }
+ }
+ });
+ LOG.log(Level.FINE, "Locale updated: {0} -> {1} in {2} ms.",
+ new Object[]{ui.getLocale(), locale,
+ System.currentTimeMillis() - time});
+ }
+
+ // private
+ // if switching to Java 8, remove this and replace by java.util.funtion.Consumer
+ // (and make to code more functional)
+ interface Consumer {
+
+ void accept(T t);
+ }
+
+ // recursively walk the Component true
+ private static void walkComponentTree(Component c, Consumer visitor) {
+ visitor.accept(c);
+ if (c instanceof HasComponents) {
+ for (Component child : ((HasComponents) c)) {
+ walkComponentTree(child, visitor);
+ }
+ }
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/adapter/TimestampAdapter.java b/VM-Core/src/main/java/com/validation/manager/core/adapter/TimestampAdapter.java
deleted file mode 100644
index 63edb98b..00000000
--- a/VM-Core/src/main/java/com/validation/manager/core/adapter/TimestampAdapter.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.validation.manager.core.adapter;
-
-import java.sql.Timestamp;
-import java.util.Date;
-import javax.xml.bind.annotation.adapters.XmlAdapter;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-public class TimestampAdapter extends XmlAdapter {
-
- @Override
- public Timestamp unmarshal(Date v) throws Exception {
- if (v == null) {
- return null;
- } else {
- return new Timestamp(v.getTime());
- }
- }
-
- @Override
- public Date marshal(Timestamp v) throws Exception {
- if (v == null) {
- return null;
- } else {
- return new Date(v.getTime());
- }
- }
-}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/tool/step/importer/StepImportException.java b/VM-Core/src/main/java/com/validation/manager/core/api/email/IEmailManager.java
similarity index 55%
rename from VM-Core/src/main/java/com/validation/manager/core/tool/step/importer/StepImportException.java
rename to VM-Core/src/main/java/com/validation/manager/core/api/email/IEmailManager.java
index 26091df3..8be830e8 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/tool/step/importer/StepImportException.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/api/email/IEmailManager.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,23 +13,26 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.tool.step.importer;
-
-import static java.util.Locale.getDefault;
-import java.util.ResourceBundle;
-import static java.util.ResourceBundle.getBundle;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-public class StepImportException extends Exception {
-
- private static final ResourceBundle RB
- = getBundle("com.validation.manager.resources.VMMessages",
- getDefault());
-
- public StepImportException(String message) {
- super(RB.containsKey(message) ? RB.getString(message) : message);
- }
-}
+package com.validation.manager.core.api.email;
+
+import javax.mail.MessagingException;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+public interface IEmailManager {
+
+ /**
+ * Create an email message.
+ *
+ * @param to Recipient email
+ * @param cc Email to copy to
+ * @param from Sender email
+ * @param subject Subject
+ * @param bodyText Message
+ * @throws MessagingException If there's an error sending the message
+ */
+ void sendEmail(String to, String cc, String from,
+ String subject, String bodyText) throws MessagingException;
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/api/internationalization/InternationalizationProvider.java b/VM-Core/src/main/java/com/validation/manager/core/api/internationalization/InternationalizationProvider.java
index d9b47f8d..d4f48fc5 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/api/internationalization/InternationalizationProvider.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/api/internationalization/InternationalizationProvider.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,28 +13,38 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.api.internationalization;
-
-import java.util.ResourceBundle;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-public interface InternationalizationProvider extends LocaleListener {
-
- /**
- * Translate a string.
- *
- * @param mess String to translate
- * @return Translated string or the same string if no translation found.
- */
- public String translate(String mess);
-
- /**
- * Get the ResourceBundle.
- *
- * @return The resource bundle.
- */
- public ResourceBundle getResourceBundle();
-}
+package com.validation.manager.core.api.internationalization;
+
+import java.util.Locale;
+import java.util.ResourceBundle;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+public interface InternationalizationProvider {
+
+ /**
+ * Translate a string.
+ *
+ * @param mess String to translate
+ * @return Translated string or the same string if no translation found.
+ */
+ public String translate(String mess);
+
+ /**
+ * Translate a string.
+ *
+ * @param mess String to translate
+ * @param l Locale to translate into.
+ * @return Translated string or the same string if no translation found.
+ */
+ public String translate(String mess, Locale l);
+
+ /**
+ * Get the ResourceBundle.
+ *
+ * @return The resource bundle.
+ */
+ public ResourceBundle getResourceBundle();
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/AssigmentType.java b/VM-Core/src/main/java/com/validation/manager/core/db/AssigmentType.java
index cb095ed2..9be79510 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/AssigmentType.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/AssigmentType.java
@@ -13,131 +13,131 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "assigment_type")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "AssigmentType.findAll",
- query = "SELECT a FROM AssigmentType a")
- , @NamedQuery(name = "AssigmentType.findById",
- query = "SELECT a FROM AssigmentType a WHERE a.id = :id")
- , @NamedQuery(name = "AssigmentType.findByFkTable",
- query = "SELECT a FROM AssigmentType a WHERE a.fkTable = :fkTable")})
-public class AssigmentType implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "Assignment_Type_IDGEN")
- @TableGenerator(name = "Assignment_Type_IDGEN", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "assigment_type",
- initialValue = 1000,
- allocationSize = 1)
- @NotNull
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "fk_table")
- private String fkTable;
- @Lob
- @Size(max = 2147483647)
- @Column(name = "description")
- private String description;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "assigmentType")
- private List userAssigmentList;
-
- public AssigmentType() {
- }
-
- public AssigmentType(String fkTable) {
- this.fkTable = fkTable;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getFkTable() {
- return fkTable;
- }
-
- public void setFkTable(String fkTable) {
- this.fkTable = fkTable;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getUserAssigmentList() {
- return userAssigmentList;
- }
-
- public void setUserAssigmentList(List userAssigmentList) {
- this.userAssigmentList = userAssigmentList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof AssigmentType)) {
- return false;
- }
- AssigmentType other = (AssigmentType) object;
- return (this.id.equals(other.id));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.AssigmentType[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "assigment_type")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "AssigmentType.findAll",
+ query = "SELECT a FROM AssigmentType a")
+ , @NamedQuery(name = "AssigmentType.findById",
+ query = "SELECT a FROM AssigmentType a WHERE a.id = :id")
+ , @NamedQuery(name = "AssigmentType.findByFkTable",
+ query = "SELECT a FROM AssigmentType a WHERE a.fkTable = :fkTable")})
+public class AssigmentType implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "Assignment_Type_IDGEN")
+ @TableGenerator(name = "Assignment_Type_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "assigment_type",
+ initialValue = 1_000,
+ allocationSize = 1)
+ @NotNull
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "fk_table")
+ private String fkTable;
+ @Lob
+ @Size(max = 2_147_483_647)
+ @Column(name = "description")
+ private String description;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "assigmentType")
+ private List userAssigmentList;
+
+ public AssigmentType() {
+ }
+
+ public AssigmentType(String fkTable) {
+ this.fkTable = fkTable;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getFkTable() {
+ return fkTable;
+ }
+
+ public void setFkTable(String fkTable) {
+ this.fkTable = fkTable;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getUserAssigmentList() {
+ return userAssigmentList;
+ }
+
+ public void setUserAssigmentList(List userAssigmentList) {
+ this.userAssigmentList = userAssigmentList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof AssigmentType)) {
+ return false;
+ }
+ AssigmentType other = (AssigmentType) object;
+ return (this.id.equals(other.id));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.AssigmentType[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/AssignmentStatus.java b/VM-Core/src/main/java/com/validation/manager/core/db/AssignmentStatus.java
index 3dc1809c..3db70fa0 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/AssignmentStatus.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/AssignmentStatus.java
@@ -13,134 +13,134 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "assignment_status")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "AssignmentStatus.findAll",
- query = "SELECT a FROM AssignmentStatus a")
- , @NamedQuery(name = "AssignmentStatus.findById",
- query = "SELECT a FROM AssignmentStatus a WHERE a.id = :id")
- , @NamedQuery(name = "AssignmentStatus.findByName",
- query = "SELECT a FROM AssignmentStatus a WHERE a.name = :name")})
-public class AssignmentStatus implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "Assignment_Status_IDGEN")
- @TableGenerator(name = "Assignment_Status_IDGEN", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "assigment_status",
- initialValue = 1000,
- allocationSize = 1)
- @NotNull
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "name")
- private String name;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(max = 2147483647)
- @Column(name = "description")
- private String description;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "assignmentStatus")
- private List userAssigmentList;
-
- public AssignmentStatus() {
- }
-
- public AssignmentStatus(String name, String description) {
- this.name = name;
- this.description = description;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getUserAssigmentList() {
- return userAssigmentList;
- }
-
- public void setUserAssigmentList(List userAssigmentList) {
- this.userAssigmentList = userAssigmentList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof AssignmentStatus)) {
- return false;
- }
- AssignmentStatus other = (AssignmentStatus) object;
- return (this.id.equals(other.id));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.AssignmentStatus[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "assignment_status")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "AssignmentStatus.findAll",
+ query = "SELECT a FROM AssignmentStatus a")
+ , @NamedQuery(name = "AssignmentStatus.findById",
+ query = "SELECT a FROM AssignmentStatus a WHERE a.id = :id")
+ , @NamedQuery(name = "AssignmentStatus.findByName",
+ query = "SELECT a FROM AssignmentStatus a WHERE a.name = :name")})
+public class AssignmentStatus implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "Assignment_Status_IDGEN")
+ @TableGenerator(name = "Assignment_Status_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "assigment_status",
+ initialValue = 1_000,
+ allocationSize = 1)
+ @NotNull
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "name")
+ private String name;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(max = 2_147_483_647)
+ @Column(name = "description")
+ private String description;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "assignmentStatus")
+ private List userAssigmentList;
+
+ public AssignmentStatus() {
+ }
+
+ public AssignmentStatus(String name, String description) {
+ this.name = name;
+ this.description = description;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getUserAssigmentList() {
+ return userAssigmentList;
+ }
+
+ public void setUserAssigmentList(List userAssigmentList) {
+ this.userAssigmentList = userAssigmentList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof AssignmentStatus)) {
+ return false;
+ }
+ AssignmentStatus other = (AssignmentStatus) object;
+ return (this.id.equals(other.id));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.AssignmentStatus[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Attachment.java b/VM-Core/src/main/java/com/validation/manager/core/db/Attachment.java
index 781a7810..cace5615 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Attachment.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Attachment.java
@@ -13,160 +13,160 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.EmbeddedId;
-import javax.persistence.Entity;
-import javax.persistence.JoinColumn;
-import javax.persistence.Lob;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "attachment")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Attachment.findAll",
- query = "SELECT a FROM Attachment a")
- , @NamedQuery(name = "Attachment.findById",
- query = "SELECT a FROM Attachment a WHERE a.attachmentPK.id = :id")
- , @NamedQuery(name = "Attachment.findByAttachmentTypeId",
- query = "SELECT a FROM Attachment a WHERE a.attachmentPK.attachmentTypeId = :attachmentTypeId")
- , @NamedQuery(name = "Attachment.findByStringValue",
- query = "SELECT a FROM Attachment a WHERE a.stringValue = :stringValue")
- , @NamedQuery(name = "Attachment.findByFileName",
- query = "SELECT a FROM Attachment a WHERE a.fileName = :fileName")})
-public class Attachment implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @EmbeddedId
- protected AttachmentPK attachmentPK;
- @Size(max = 255)
- @Column(name = "string_value")
- private String stringValue;
- @Lob
- @Column(name = "file")
- private byte[] file;
- @Lob
- @Size(max = 2147483647)
- @Column(name = "TEXT_VALUE")
- private String textValue;
- @Size(max = 255)
- @Column(name = "file_name")
- private String fileName;
- @JoinColumn(name = "attachment_type_id", referencedColumnName = "id",
- insertable = false, updatable = false)
- @ManyToOne(optional = false)
- private AttachmentType attachmentType;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "attachment")
- private List executionStepHasAttachmentList;
-
- public Attachment() {
- }
-
- public Attachment(AttachmentPK attachmentPK) {
- this.attachmentPK = attachmentPK;
- }
-
- public Attachment(int id, int attachmentTypeId) {
- this.attachmentPK = new AttachmentPK(id, attachmentTypeId);
- }
-
- public AttachmentPK getAttachmentPK() {
- return attachmentPK;
- }
-
- public void setAttachmentPK(AttachmentPK attachmentPK) {
- this.attachmentPK = attachmentPK;
- }
-
- public String getStringValue() {
- return stringValue;
- }
-
- public void setStringValue(String stringValue) {
- this.stringValue = stringValue;
- }
-
- public String getTextValue() {
- return textValue;
- }
-
- public void setTextValue(String textValue) {
- this.textValue = textValue;
- }
-
- public String getFileName() {
- return fileName;
- }
-
- public void setFileName(String fileName) {
- this.fileName = fileName;
- }
-
- public AttachmentType getAttachmentType() {
- return attachmentType;
- }
-
- public void setAttachmentType(AttachmentType attachmentType) {
- this.attachmentType = attachmentType;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExecutionStepHasAttachmentList() {
- return executionStepHasAttachmentList;
- }
-
- public void setExecutionStepHasAttachmentList(List executionStepHasAttachmentList) {
- this.executionStepHasAttachmentList = executionStepHasAttachmentList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (attachmentPK != null ? attachmentPK.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Attachment)) {
- return false;
- }
- Attachment other = (Attachment) object;
- return !((this.attachmentPK == null && other.attachmentPK != null)
- || (this.attachmentPK != null
- && !this.attachmentPK.equals(other.attachmentPK)));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Attachment[ attachmentPK="
- + attachmentPK + " ]";
- }
-
- public byte[] getFile() {
- return file;
- }
-
- public void setFile(byte[] file) {
- this.file = file;
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.EmbeddedId;
+import javax.persistence.Entity;
+import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "attachment")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Attachment.findAll",
+ query = "SELECT a FROM Attachment a")
+ , @NamedQuery(name = "Attachment.findById",
+ query = "SELECT a FROM Attachment a WHERE a.attachmentPK.id = :id")
+ , @NamedQuery(name = "Attachment.findByAttachmentTypeId",
+ query = "SELECT a FROM Attachment a WHERE a.attachmentPK.attachmentTypeId = :attachmentTypeId")
+ , @NamedQuery(name = "Attachment.findByStringValue",
+ query = "SELECT a FROM Attachment a WHERE a.stringValue = :stringValue")
+ , @NamedQuery(name = "Attachment.findByFileName",
+ query = "SELECT a FROM Attachment a WHERE a.fileName = :fileName")})
+public class Attachment implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @EmbeddedId
+ protected AttachmentPK attachmentPK;
+ @Size(max = 255)
+ @Column(name = "string_value")
+ private String stringValue;
+ @Lob
+ @Column(name = "file")
+ private byte[] file;
+ @Lob
+ @Size(max = 2_147_483_647)
+ @Column(name = "TEXT_VALUE")
+ private String textValue;
+ @Size(max = 255)
+ @Column(name = "file_name")
+ private String fileName;
+ @JoinColumn(name = "attachment_type_id", referencedColumnName = "id",
+ insertable = false, updatable = false)
+ @ManyToOne(optional = false)
+ private AttachmentType attachmentType;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "attachment")
+ private List executionStepHasAttachmentList;
+
+ public Attachment() {
+ }
+
+ public Attachment(AttachmentPK attachmentPK) {
+ this.attachmentPK = attachmentPK;
+ }
+
+ public Attachment(int id, int attachmentTypeId) {
+ this.attachmentPK = new AttachmentPK(id, attachmentTypeId);
+ }
+
+ public AttachmentPK getAttachmentPK() {
+ return attachmentPK;
+ }
+
+ public void setAttachmentPK(AttachmentPK attachmentPK) {
+ this.attachmentPK = attachmentPK;
+ }
+
+ public String getStringValue() {
+ return stringValue;
+ }
+
+ public void setStringValue(String stringValue) {
+ this.stringValue = stringValue;
+ }
+
+ public String getTextValue() {
+ return textValue;
+ }
+
+ public void setTextValue(String textValue) {
+ this.textValue = textValue;
+ }
+
+ public String getFileName() {
+ return fileName;
+ }
+
+ public void setFileName(String fileName) {
+ this.fileName = fileName;
+ }
+
+ public AttachmentType getAttachmentType() {
+ return attachmentType;
+ }
+
+ public void setAttachmentType(AttachmentType attachmentType) {
+ this.attachmentType = attachmentType;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExecutionStepHasAttachmentList() {
+ return executionStepHasAttachmentList;
+ }
+
+ public void setExecutionStepHasAttachmentList(List executionStepHasAttachmentList) {
+ this.executionStepHasAttachmentList = executionStepHasAttachmentList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (attachmentPK != null ? attachmentPK.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Attachment)) {
+ return false;
+ }
+ Attachment other = (Attachment) object;
+ return !((this.attachmentPK == null && other.attachmentPK != null)
+ || (this.attachmentPK != null
+ && !this.attachmentPK.equals(other.attachmentPK)));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Attachment[ attachmentPK="
+ + attachmentPK + " ]";
+ }
+
+ public byte[] getFile() {
+ return file;
+ }
+
+ public void setFile(byte[] file) {
+ this.file = file;
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/AttachmentType.java b/VM-Core/src/main/java/com/validation/manager/core/db/AttachmentType.java
index 247ae686..2015e8f8 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/AttachmentType.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/AttachmentType.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,125 +13,120 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "attachment_type")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "AttachmentType.findAll",
- query = "SELECT a FROM AttachmentType a")
- , @NamedQuery(name = "AttachmentType.findById",
- query = "SELECT a FROM AttachmentType a WHERE a.id = :id")
- , @NamedQuery(name = "AttachmentType.findByType",
- query = "SELECT a FROM AttachmentType a WHERE a.type = :type")})
-public class AttachmentType implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "id")
- private Integer id;
- @Lob
- @Size(max = 65535)
- @Column(name = "description")
- private String description;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "TYPE")
- private String type;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "attachmentType")
- private List attachmentList;
-
- public AttachmentType() {
- }
-
- public AttachmentType(Integer id) {
- this.id = id;
- }
-
- public AttachmentType(Integer id, String type) {
- this.id = id;
- this.type = type;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getAttachmentList() {
- return attachmentList;
- }
-
- public void setAttachmentList(List attachmentList) {
- this.attachmentList = attachmentList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof AttachmentType)) {
- return false;
- }
- AttachmentType other = (AttachmentType) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.AttachmentType[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "attachment_type")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "AttachmentType.findAll",
+ query = "SELECT a FROM AttachmentType a")
+ , @NamedQuery(name = "AttachmentType.findById",
+ query = "SELECT a FROM AttachmentType a WHERE a.id = :id")
+ , @NamedQuery(name = "AttachmentType.findByType",
+ query = "SELECT a FROM AttachmentType a WHERE a.type = :type")})
+public class AttachmentType implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "id")
+ private Integer id;
+ @Lob
+ @Size(max = 65_535)
+ @Column(name = "description")
+ private String description;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "TYPE")
+ private String type;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "attachmentType")
+ private List attachmentList;
+
+ public AttachmentType() {
+ }
+
+ public AttachmentType(String type) {
+ this.type = type;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getAttachmentList() {
+ return attachmentList;
+ }
+
+ public void setAttachmentList(List attachmentList) {
+ this.attachmentList = attachmentList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof AttachmentType)) {
+ return false;
+ }
+ AttachmentType other = (AttachmentType) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.AttachmentType[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Baseline.java b/VM-Core/src/main/java/com/validation/manager/core/db/Baseline.java
index e6e11160..91a3cc0b 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Baseline.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Baseline.java
@@ -13,176 +13,176 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinColumns;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "baseline")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Baseline.findAll",
- query = "SELECT b FROM Baseline b")
- , @NamedQuery(name = "Baseline.findById",
- query = "SELECT b FROM Baseline b WHERE b.id = :id")
- , @NamedQuery(name = "Baseline.findByCreationDate",
- query = "SELECT b FROM Baseline b WHERE b.creationDate = :creationDate")
- , @NamedQuery(name = "Baseline.findByBaselineName",
- query = "SELECT b FROM Baseline b WHERE b.baselineName = :baselineName")})
-public class Baseline implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "id")
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "Baseline_IDGEN")
- @TableGenerator(name = "Baseline_IDGEN", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "baseline",
- initialValue = 1,
- allocationSize = 1)
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Column(name = "creation_date")
- @Temporal(TemporalType.TIMESTAMP)
- private Date creationDate;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "baseline_name")
- private String baselineName;
- @Lob
- @Size(max = 2147483647)
- @Column(name = "description")
- private String description;
- @JoinTable(name = "baseline_has_history", joinColumns = {
- @JoinColumn(name = "baseline_id", referencedColumnName = "id")}, inverseJoinColumns = {
- @JoinColumn(name = "history_id", referencedColumnName = "id")})
- @ManyToMany
- private List historyList;
- @JoinColumns({
- @JoinColumn(name = "requirement_spec_id", referencedColumnName = "id")
- , @JoinColumn(name = "requirement_spec_project_id", referencedColumnName = "project_id")
- , @JoinColumn(name = "requirement_spec_spec_level_id", referencedColumnName = "spec_level_id")})
- @ManyToOne(optional = false)
- private RequirementSpec requirementSpec;
-
- public Baseline() {
- }
-
- public Baseline(Date creationDate, String baselineName) {
- this.creationDate = creationDate;
- this.baselineName = baselineName;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public Date getCreationDate() {
- return creationDate;
- }
-
- public void setCreationDate(Date creationDate) {
- this.creationDate = creationDate;
- }
-
- public String getBaselineName() {
- return baselineName;
- }
-
- public void setBaselineName(String baselineName) {
- this.baselineName = baselineName;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Baseline)) {
- return false;
- }
- Baseline other = (Baseline) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Baseline[ id=" + id + " ]";
- }
-
- /**
- * @return the description
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @param description the description to set
- */
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getHistoryList() {
- return historyList;
- }
-
- public void setHistoryList(List historyList) {
- this.historyList = historyList;
- }
-
- public RequirementSpec getRequirementSpec() {
- return requirementSpec;
- }
-
- public void setRequirementSpec(RequirementSpec requirementSpec) {
- this.requirementSpec = requirementSpec;
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinColumns;
+import javax.persistence.JoinTable;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "baseline")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Baseline.findAll",
+ query = "SELECT b FROM Baseline b")
+ , @NamedQuery(name = "Baseline.findById",
+ query = "SELECT b FROM Baseline b WHERE b.id = :id")
+ , @NamedQuery(name = "Baseline.findByCreationDate",
+ query = "SELECT b FROM Baseline b WHERE b.creationDate = :creationDate")
+ , @NamedQuery(name = "Baseline.findByBaselineName",
+ query = "SELECT b FROM Baseline b WHERE b.baselineName = :baselineName")})
+public class Baseline implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "id")
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "Baseline_IDGEN")
+ @TableGenerator(name = "Baseline_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "baseline",
+ initialValue = 1,
+ allocationSize = 1)
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "creation_date")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date creationDate;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "baseline_name")
+ private String baselineName;
+ @Lob
+ @Size(max = 2_147_483_647)
+ @Column(name = "description")
+ private String description;
+ @JoinTable(name = "baseline_has_history", joinColumns = {
+ @JoinColumn(name = "baseline_id", referencedColumnName = "id")}, inverseJoinColumns = {
+ @JoinColumn(name = "history_id", referencedColumnName = "id")})
+ @ManyToMany
+ private List historyList;
+ @JoinColumns({
+ @JoinColumn(name = "requirement_spec_id", referencedColumnName = "id")
+ , @JoinColumn(name = "requirement_spec_project_id", referencedColumnName = "project_id")
+ , @JoinColumn(name = "requirement_spec_spec_level_id", referencedColumnName = "spec_level_id")})
+ @ManyToOne(optional = false)
+ private RequirementSpec requirementSpec;
+
+ public Baseline() {
+ }
+
+ public Baseline(Date creationDate, String baselineName) {
+ this.creationDate = creationDate;
+ this.baselineName = baselineName;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Date getCreationDate() {
+ return creationDate;
+ }
+
+ public void setCreationDate(Date creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public String getBaselineName() {
+ return baselineName;
+ }
+
+ public void setBaselineName(String baselineName) {
+ this.baselineName = baselineName;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Baseline)) {
+ return false;
+ }
+ Baseline other = (Baseline) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Baseline[ id=" + id + " ]";
+ }
+
+ /**
+ * @return the description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * @param description the description to set
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getHistoryList() {
+ return historyList;
+ }
+
+ public void setHistoryList(List historyList) {
+ this.historyList = historyList;
+ }
+
+ public RequirementSpec getRequirementSpec() {
+ return requirementSpec;
+ }
+
+ public void setRequirementSpec(RequirementSpec requirementSpec) {
+ this.requirementSpec = requirementSpec;
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Cause.java b/VM-Core/src/main/java/com/validation/manager/core/db/Cause.java
index d3bd4036..6b99ceb7 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Cause.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Cause.java
@@ -13,140 +13,140 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "cause")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Cause.findAll",
- query = "SELECT c FROM Cause c")
- , @NamedQuery(name = "Cause.findById",
- query = "SELECT c FROM Cause c WHERE c.id = :id")
- , @NamedQuery(name = "Cause.findByName",
- query = "SELECT c FROM Cause c WHERE c.name = :name")})
-public class Cause implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE, generator = "CauseGen")
- @TableGenerator(name = "CauseGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "cause",
- allocationSize = 1,
- initialValue = 1000)
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "name")
- private String name;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 65535)
- @Column(name = "description")
- private String description;
- @JoinTable(name = "risk_item_has_cause", joinColumns = {
- @JoinColumn(name = "cause_id", referencedColumnName = "id")},
- inverseJoinColumns = {
- @JoinColumn(name = "risk_item_id", referencedColumnName = "id")
- , @JoinColumn(name = "risk_item_FMEA_id",
- referencedColumnName = "FMEA_id")})
- @ManyToMany
- private List riskItemList;
-
- public Cause() {
- }
-
- public Cause(String name, String description) {
- this.name = name;
- this.description = description;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getRiskItemList() {
- return riskItemList;
- }
-
- public void setRiskItemList(List riskItemList) {
- this.riskItemList = riskItemList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Cause)) {
- return false;
- }
- Cause other = (Cause) object;
- return !((this.id == null && other.id != null)
- || (this.id != null && !this.id.equals(other.id)));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Cause[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinTable;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "cause")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Cause.findAll",
+ query = "SELECT c FROM Cause c")
+ , @NamedQuery(name = "Cause.findById",
+ query = "SELECT c FROM Cause c WHERE c.id = :id")
+ , @NamedQuery(name = "Cause.findByName",
+ query = "SELECT c FROM Cause c WHERE c.name = :name")})
+public class Cause implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @GeneratedValue(strategy = GenerationType.TABLE, generator = "CauseGen")
+ @TableGenerator(name = "CauseGen", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "cause",
+ allocationSize = 1,
+ initialValue = 1_000)
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "name")
+ private String name;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 65_535)
+ @Column(name = "description")
+ private String description;
+ @JoinTable(name = "risk_item_has_cause", joinColumns = {
+ @JoinColumn(name = "cause_id", referencedColumnName = "id")},
+ inverseJoinColumns = {
+ @JoinColumn(name = "risk_item_id", referencedColumnName = "id")
+ , @JoinColumn(name = "risk_item_FMEA_id",
+ referencedColumnName = "FMEA_id")})
+ @ManyToMany
+ private List riskItemList;
+
+ public Cause() {
+ }
+
+ public Cause(String name, String description) {
+ this.name = name;
+ this.description = description;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getRiskItemList() {
+ return riskItemList;
+ }
+
+ public void setRiskItemList(List riskItemList) {
+ this.riskItemList = riskItemList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Cause)) {
+ return false;
+ }
+ Cause other = (Cause) object;
+ return !((this.id == null && other.id != null)
+ || (this.id != null && !this.id.equals(other.id)));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Cause[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/CorrectiveAction.java b/VM-Core/src/main/java/com/validation/manager/core/db/CorrectiveAction.java
index 9baeffe3..62860b2c 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/CorrectiveAction.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/CorrectiveAction.java
@@ -13,137 +13,137 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "corrective_action")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "CorrectiveAction.findAll",
- query = "SELECT c FROM CorrectiveAction c")
- , @NamedQuery(name = "CorrectiveAction.findById",
- query = "SELECT c FROM CorrectiveAction c WHERE c.id = :id")})
-public class CorrectiveAction implements Serializable {
-
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "correctiveAction")
- private List exceptionHasCorrectiveActionList;
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE, generator = "CAGen")
- @TableGenerator(name = "CAGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "corrective_action",
- allocationSize = 1,
- initialValue = 1000)
- @NotNull
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 65535)
- @Column(name = "details")
- private String details;
- @JoinTable(name = "user_has_corrective_action", joinColumns = {
- @JoinColumn(name = "corrective_action_id",
- referencedColumnName = "id")}, inverseJoinColumns = {
- @JoinColumn(name = "user_id", referencedColumnName = "id")})
- @ManyToMany
- private List vmUserList;
-
- public CorrectiveAction() {
- }
-
- public CorrectiveAction(String details) {
- this.details = details;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getDetails() {
- return details;
- }
-
- public void setDetails(String details) {
- this.details = details;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getVmUserList() {
- return vmUserList;
- }
-
- public void setVmUserList(List vmUserList) {
- this.vmUserList = vmUserList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof CorrectiveAction)) {
- return false;
- }
- CorrectiveAction other = (CorrectiveAction) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.CorrectiveAction[ id=" + id + " ]";
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExceptionHasCorrectiveActionList() {
- return exceptionHasCorrectiveActionList;
- }
-
- public void setExceptionHasCorrectiveActionList(List exceptionHasCorrectiveActionList) {
- this.exceptionHasCorrectiveActionList = exceptionHasCorrectiveActionList;
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinTable;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "corrective_action")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "CorrectiveAction.findAll",
+ query = "SELECT c FROM CorrectiveAction c")
+ , @NamedQuery(name = "CorrectiveAction.findById",
+ query = "SELECT c FROM CorrectiveAction c WHERE c.id = :id")})
+public class CorrectiveAction implements Serializable {
+
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "correctiveAction")
+ private List exceptionHasCorrectiveActionList;
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @GeneratedValue(strategy = GenerationType.TABLE, generator = "CAGen")
+ @TableGenerator(name = "CAGen", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "corrective_action",
+ allocationSize = 1,
+ initialValue = 1_000)
+ @NotNull
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 65_535)
+ @Column(name = "details")
+ private String details;
+ @JoinTable(name = "user_has_corrective_action", joinColumns = {
+ @JoinColumn(name = "corrective_action_id",
+ referencedColumnName = "id")}, inverseJoinColumns = {
+ @JoinColumn(name = "user_id", referencedColumnName = "id")})
+ @ManyToMany
+ private List vmUserList;
+
+ public CorrectiveAction() {
+ }
+
+ public CorrectiveAction(String details) {
+ this.details = details;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getDetails() {
+ return details;
+ }
+
+ public void setDetails(String details) {
+ this.details = details;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getVmUserList() {
+ return vmUserList;
+ }
+
+ public void setVmUserList(List vmUserList) {
+ this.vmUserList = vmUserList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof CorrectiveAction)) {
+ return false;
+ }
+ CorrectiveAction other = (CorrectiveAction) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.CorrectiveAction[ id=" + id + " ]";
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExceptionHasCorrectiveActionList() {
+ return exceptionHasCorrectiveActionList;
+ }
+
+ public void setExceptionHasCorrectiveActionList(List exceptionHasCorrectiveActionList) {
+ this.exceptionHasCorrectiveActionList = exceptionHasCorrectiveActionList;
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionResult.java b/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionResult.java
index 0e22e234..55f3e4e6 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionResult.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionResult.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,123 +13,118 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "execution_result")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "ExecutionResult.findAll",
- query = "SELECT e FROM ExecutionResult e")
- , @NamedQuery(name = "ExecutionResult.findById",
- query = "SELECT e FROM ExecutionResult e WHERE e.id = :id")
- , @NamedQuery(name = "ExecutionResult.findByResultName",
- query = "SELECT e FROM ExecutionResult e WHERE e.resultName = :resultName")})
-public class ExecutionResult implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "id")
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "ExecutionResult_IDGEN")
- @TableGenerator(name = "ExecutionResult_IDGEN", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "execution_result",
- initialValue = 1,
- allocationSize = 1)
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "result_name")
- private String resultName;
- @OneToMany(mappedBy = "resultId")
- private List executionStepList;
-
- public ExecutionResult() {
- }
-
- public ExecutionResult(Integer id) {
- this.id = id;
- }
-
- public ExecutionResult(Integer id, String resultName) {
- this.id = id;
- this.resultName = resultName;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getResultName() {
- return resultName;
- }
-
- public void setResultName(String resultName) {
- this.resultName = resultName;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExecutionStepList() {
- return executionStepList;
- }
-
- public void setExecutionStepList(List executionStepList) {
- this.executionStepList = executionStepList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof ExecutionResult)) {
- return false;
- }
- ExecutionResult other = (ExecutionResult) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.ExecutionResult[ id=" + id + " ]";
- }
-
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "execution_result")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "ExecutionResult.findAll",
+ query = "SELECT e FROM ExecutionResult e")
+ , @NamedQuery(name = "ExecutionResult.findById",
+ query = "SELECT e FROM ExecutionResult e WHERE e.id = :id")
+ , @NamedQuery(name = "ExecutionResult.findByResultName",
+ query = "SELECT e FROM ExecutionResult e WHERE e.resultName = :resultName")})
+public class ExecutionResult implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "id")
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "ExecutionResult_IDGEN")
+ @TableGenerator(name = "ExecutionResult_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "execution_result",
+ initialValue = 1,
+ allocationSize = 1)
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "result_name")
+ private String resultName;
+ @OneToMany(mappedBy = "resultId")
+ private List executionStepList;
+
+ public ExecutionResult() {
+ }
+
+ public ExecutionResult(String resultName) {
+ this.resultName = resultName;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getResultName() {
+ return resultName;
+ }
+
+ public void setResultName(String resultName) {
+ this.resultName = resultName;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExecutionStepList() {
+ return executionStepList;
+ }
+
+ public void setExecutionStepList(List executionStepList) {
+ this.executionStepList = executionStepList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof ExecutionResult)) {
+ return false;
+ }
+ ExecutionResult other = (ExecutionResult) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.ExecutionResult[ id=" + id + " ]";
+ }
+
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionStep.java b/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionStep.java
index 7d83e548..f3570a21 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionStep.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/ExecutionStep.java
@@ -13,365 +13,365 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.EmbeddedId;
-import javax.persistence.Entity;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinColumns;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "execution_step")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "ExecutionStep.findAll",
- query = "SELECT e FROM ExecutionStep e")
- , @NamedQuery(name = "ExecutionStep.findByTestCaseExecutionId",
- query = "SELECT e FROM ExecutionStep e WHERE e.executionStepPK.testCaseExecutionId = :testCaseExecutionId")
- , @NamedQuery(name = "ExecutionStep.findByStepId",
- query = "SELECT e FROM ExecutionStep e WHERE e.executionStepPK.stepId = :stepId")
- , @NamedQuery(name = "ExecutionStep.findByStepTestCaseId",
- query = "SELECT e FROM ExecutionStep e WHERE e.executionStepPK.stepTestCaseId = :stepTestCaseId")
- , @NamedQuery(name = "ExecutionStep.findByExecutionTime",
- query = "SELECT e FROM ExecutionStep e WHERE e.executionTime = :executionTime")
- , @NamedQuery(name = "ExecutionStep.findByExecutionStart",
- query = "SELECT e FROM ExecutionStep e WHERE e.executionStart = :executionStart")
- , @NamedQuery(name = "ExecutionStep.findByExecutionEnd",
- query = "SELECT e FROM ExecutionStep e WHERE e.executionEnd = :executionEnd")
- , @NamedQuery(name = "ExecutionStep.findByAssignedTime",
- query = "SELECT e FROM ExecutionStep e WHERE e.assignedTime = :assignedTime")
- , @NamedQuery(name = "ExecutionStep.findByLocked",
- query = "SELECT e FROM ExecutionStep e WHERE e.locked = :locked")
- , @NamedQuery(name = "ExecutionStep.findByReviewed",
- query = "SELECT e FROM ExecutionStep e WHERE e.reviewed = :reviewed")})
-public class ExecutionStep implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @EmbeddedId
- protected ExecutionStepPK executionStepPK;
- // @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
- @Column(name = "execution_time")
- private Double executionTime;
- @Lob
- @Size(max = 2147483647)
- @Column(name = "comment")
- private String comment;
- @Column(name = "execution_start")
- @Temporal(TemporalType.TIMESTAMP)
- private Date executionStart;
- @Column(name = "execution_end")
- @Temporal(TemporalType.TIMESTAMP)
- private Date executionEnd;
- @Column(name = "review_date")
- @Temporal(TemporalType.TIMESTAMP)
- private Date reviewDate;
- @Column(name = "assigned_time")
- @Temporal(TemporalType.TIMESTAMP)
- private Date assignedTime;
- @Basic(optional = false)
- @NotNull
- @Column(name = "locked")
- private boolean locked;
- @Basic(optional = false)
- @NotNull
- @Column(name = "reviewed")
- private boolean reviewed;
- @JoinColumn(name = "result_id", referencedColumnName = "id")
- @ManyToOne
- private ExecutionResult resultId;
- @JoinColumn(name = "review_result_id", referencedColumnName = "id")
- @ManyToOne
- private ReviewResult reviewResultId;
- @JoinColumn(name = "assignee", referencedColumnName = "id")
- @ManyToOne
- private VmUser assignee;
- @JoinColumn(name = "assigner", referencedColumnName = "id")
- @ManyToOne
- private VmUser assigner;
- @JoinColumn(name = "reviewer", referencedColumnName = "id")
- @ManyToOne
- private VmUser reviewer;
- @JoinColumns({
- @JoinColumn(name = "step_id", referencedColumnName = "id",
- insertable = false, updatable = false)
- , @JoinColumn(name = "step_test_case_id",
- referencedColumnName = "test_case_id", insertable = false,
- updatable = false)})
- @ManyToOne(optional = false)
- private Step step;
- @JoinColumn(name = "test_case_execution_id", referencedColumnName = "id",
- insertable = false, updatable = false)
- @ManyToOne(optional = false)
- private TestCaseExecution testCaseExecution;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "executionStep")
- private List executionStepHasAttachmentList;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "executionStep")
- private List executionStepHasIssueList;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "executionStep")
- private List executionStepHasVmUserList;
- @JoinTable(name = "execution_step_has_history", joinColumns = {
- @JoinColumn(name = "execution_step_test_case_execution_id", referencedColumnName = "test_case_execution_id")
- , @JoinColumn(name = "execution_step_step_id", referencedColumnName = "step_id")
- , @JoinColumn(name = "execution_step_step_test_case_id", referencedColumnName = "step_test_case_id")}, inverseJoinColumns = {
- @JoinColumn(name = "history_id", referencedColumnName = "id")})
- @ManyToMany
- private List historyList;
- @JoinColumn(name = "step_history", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private History stepHistory;
-
- public ExecutionStep() {
- }
-
- public ExecutionStep(ExecutionStepPK executionStepPK) {
- this.executionStepPK = executionStepPK;
- }
-
- public ExecutionStep(ExecutionStepPK executionStepPK, boolean locked, boolean reviewed) {
- this.executionStepPK = executionStepPK;
- this.locked = locked;
- this.reviewed = reviewed;
- }
-
- public ExecutionStep(int testCaseExecutionId, int stepId, int stepTestCaseId) {
- this.executionStepPK = new ExecutionStepPK(testCaseExecutionId,
- stepId, stepTestCaseId);
- }
-
- public ExecutionStepPK getExecutionStepPK() {
- return executionStepPK;
- }
-
- public void setExecutionStepPK(ExecutionStepPK executionStepPK) {
- this.executionStepPK = executionStepPK;
- }
-
- public Double getExecutionTime() {
- return executionTime;
- }
-
- public void setExecutionTime(Double executionTime) {
- this.executionTime = executionTime;
- }
-
- public String getComment() {
- return comment;
- }
-
- public void setComment(String comment) {
- this.comment = comment;
- }
-
- public Date getExecutionStart() {
- return executionStart;
- }
-
- public void setExecutionStart(Date executionStart) {
- this.executionStart = executionStart;
- }
-
- public Date getExecutionEnd() {
- return executionEnd;
- }
-
- public void setExecutionEnd(Date executionEnd) {
- this.executionEnd = executionEnd;
- }
-
- public Date getAssignedTime() {
- return assignedTime;
- }
-
- public void setAssignedTime(Date assignedTime) {
- this.assignedTime = assignedTime;
- }
-
- public boolean getLocked() {
- return locked;
- }
-
- public void setLocked(boolean locked) {
- this.locked = locked;
- }
-
- public boolean getReviewed() {
- return reviewed;
- }
-
- public void setReviewed(boolean reviewed) {
- this.reviewed = reviewed;
- }
-
- public ExecutionResult getResultId() {
- return resultId;
- }
-
- public void setResultId(ExecutionResult resultId) {
- this.resultId = resultId;
- }
-
- public ReviewResult getReviewResultId() {
- return reviewResultId;
- }
-
- public void setReviewResultId(ReviewResult reviewResultId) {
- this.reviewResultId = reviewResultId;
- }
-
- public VmUser getAssignee() {
- return assignee;
- }
-
- public void setAssignee(VmUser assignee) {
- this.assignee = assignee;
- }
-
- public VmUser getAssigner() {
- return assigner;
- }
-
- public void setAssigner(VmUser assigner) {
- this.assigner = assigner;
- }
-
- public Step getStep() {
- return step;
- }
-
- public void setStep(Step step) {
- this.step = step;
- }
-
- public TestCaseExecution getTestCaseExecution() {
- return testCaseExecution;
- }
-
- public void setTestCaseExecution(TestCaseExecution testCaseExecution) {
- this.testCaseExecution = testCaseExecution;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExecutionStepHasAttachmentList() {
- return executionStepHasAttachmentList;
- }
-
- public void setExecutionStepHasAttachmentList(List executionStepHasAttachmentList) {
- this.executionStepHasAttachmentList = executionStepHasAttachmentList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (executionStepPK != null ? executionStepPK.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof ExecutionStep)) {
- return false;
- }
- ExecutionStep other = (ExecutionStep) object;
- return !((this.executionStepPK == null && other.executionStepPK != null)
- || (this.executionStepPK != null
- && !this.executionStepPK.equals(other.executionStepPK)));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.ExecutionStep[ executionStepPK=" + executionStepPK + " ]";
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExecutionStepHasIssueList() {
- return executionStepHasIssueList;
- }
-
- public void setExecutionStepHasIssueList(List executionStepHasIssueList) {
- this.executionStepHasIssueList = executionStepHasIssueList;
- }
-
- /**
- * @return the reviewDate
- */
- public Date getReviewDate() {
- return reviewDate;
- }
-
- /**
- * @param reviewDate the reviewDate to set
- */
- public void setReviewDate(Date reviewDate) {
- this.reviewDate = reviewDate;
- }
-
- /**
- * @return the reviewer
- */
- public VmUser getReviewer() {
- return reviewer;
- }
-
- /**
- * @param reviewer the reviewer to set
- */
- public void setReviewer(VmUser reviewer) {
- this.reviewer = reviewer;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExecutionStepHasVmUserList() {
- return executionStepHasVmUserList;
- }
-
- public void setExecutionStepHasVmUserList(List executionStepHasVmUserList) {
- this.executionStepHasVmUserList = executionStepHasVmUserList;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getHistoryList() {
- return historyList;
- }
-
- public void setHistoryList(List historyList) {
- this.historyList = historyList;
- }
-
- public History getStepHistory() {
- return stepHistory;
- }
-
- public void setStepHistory(History stepHistory) {
- this.stepHistory = stepHistory;
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.EmbeddedId;
+import javax.persistence.Entity;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinColumns;
+import javax.persistence.JoinTable;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "execution_step")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "ExecutionStep.findAll",
+ query = "SELECT e FROM ExecutionStep e")
+ , @NamedQuery(name = "ExecutionStep.findByTestCaseExecutionId",
+ query = "SELECT e FROM ExecutionStep e WHERE e.executionStepPK.testCaseExecutionId = :testCaseExecutionId")
+ , @NamedQuery(name = "ExecutionStep.findByStepId",
+ query = "SELECT e FROM ExecutionStep e WHERE e.executionStepPK.stepId = :stepId")
+ , @NamedQuery(name = "ExecutionStep.findByStepTestCaseId",
+ query = "SELECT e FROM ExecutionStep e WHERE e.executionStepPK.stepTestCaseId = :stepTestCaseId")
+ , @NamedQuery(name = "ExecutionStep.findByExecutionTime",
+ query = "SELECT e FROM ExecutionStep e WHERE e.executionTime = :executionTime")
+ , @NamedQuery(name = "ExecutionStep.findByExecutionStart",
+ query = "SELECT e FROM ExecutionStep e WHERE e.executionStart = :executionStart")
+ , @NamedQuery(name = "ExecutionStep.findByExecutionEnd",
+ query = "SELECT e FROM ExecutionStep e WHERE e.executionEnd = :executionEnd")
+ , @NamedQuery(name = "ExecutionStep.findByAssignedTime",
+ query = "SELECT e FROM ExecutionStep e WHERE e.assignedTime = :assignedTime")
+ , @NamedQuery(name = "ExecutionStep.findByLocked",
+ query = "SELECT e FROM ExecutionStep e WHERE e.locked = :locked")
+ , @NamedQuery(name = "ExecutionStep.findByReviewed",
+ query = "SELECT e FROM ExecutionStep e WHERE e.reviewed = :reviewed")})
+public class ExecutionStep implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @EmbeddedId
+ protected ExecutionStepPK executionStepPK;
+ // @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
+ @Column(name = "execution_time")
+ private Double executionTime;
+ @Lob
+ @Size(max = 2_147_483_647)
+ @Column(name = "comment")
+ private String comment;
+ @Column(name = "execution_start")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date executionStart;
+ @Column(name = "execution_end")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date executionEnd;
+ @Column(name = "review_date")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date reviewDate;
+ @Column(name = "assigned_time")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date assignedTime;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "locked")
+ private boolean locked;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "reviewed")
+ private boolean reviewed;
+ @JoinColumn(name = "result_id", referencedColumnName = "id")
+ @ManyToOne
+ private ExecutionResult resultId;
+ @JoinColumn(name = "review_result_id", referencedColumnName = "id")
+ @ManyToOne
+ private ReviewResult reviewResultId;
+ @JoinColumn(name = "assignee", referencedColumnName = "id")
+ @ManyToOne
+ private VmUser assignee;
+ @JoinColumn(name = "assigner", referencedColumnName = "id")
+ @ManyToOne
+ private VmUser assigner;
+ @JoinColumn(name = "reviewer", referencedColumnName = "id")
+ @ManyToOne
+ private VmUser reviewer;
+ @JoinColumns({
+ @JoinColumn(name = "step_id", referencedColumnName = "id",
+ insertable = false, updatable = false)
+ , @JoinColumn(name = "step_test_case_id",
+ referencedColumnName = "test_case_id", insertable = false,
+ updatable = false)})
+ @ManyToOne(optional = false)
+ private Step step;
+ @JoinColumn(name = "test_case_execution_id", referencedColumnName = "id",
+ insertable = false, updatable = false)
+ @ManyToOne(optional = false)
+ private TestCaseExecution testCaseExecution;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "executionStep")
+ private List executionStepHasAttachmentList;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "executionStep")
+ private List executionStepHasIssueList;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "executionStep")
+ private List executionStepHasVmUserList;
+ @JoinTable(name = "execution_step_has_history", joinColumns = {
+ @JoinColumn(name = "execution_step_test_case_execution_id", referencedColumnName = "test_case_execution_id")
+ , @JoinColumn(name = "execution_step_step_id", referencedColumnName = "step_id")
+ , @JoinColumn(name = "execution_step_step_test_case_id", referencedColumnName = "step_test_case_id")}, inverseJoinColumns = {
+ @JoinColumn(name = "history_id", referencedColumnName = "id")})
+ @ManyToMany
+ private List historyList;
+ @JoinColumn(name = "step_history", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private History stepHistory;
+
+ public ExecutionStep() {
+ }
+
+ public ExecutionStep(ExecutionStepPK executionStepPK) {
+ this.executionStepPK = executionStepPK;
+ }
+
+ public ExecutionStep(ExecutionStepPK executionStepPK, boolean locked, boolean reviewed) {
+ this.executionStepPK = executionStepPK;
+ this.locked = locked;
+ this.reviewed = reviewed;
+ }
+
+ public ExecutionStep(int testCaseExecutionId, int stepId, int stepTestCaseId) {
+ this.executionStepPK = new ExecutionStepPK(testCaseExecutionId,
+ stepId, stepTestCaseId);
+ }
+
+ public ExecutionStepPK getExecutionStepPK() {
+ return executionStepPK;
+ }
+
+ public void setExecutionStepPK(ExecutionStepPK executionStepPK) {
+ this.executionStepPK = executionStepPK;
+ }
+
+ public Double getExecutionTime() {
+ return executionTime;
+ }
+
+ public void setExecutionTime(Double executionTime) {
+ this.executionTime = executionTime;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ public Date getExecutionStart() {
+ return executionStart;
+ }
+
+ public void setExecutionStart(Date executionStart) {
+ this.executionStart = executionStart;
+ }
+
+ public Date getExecutionEnd() {
+ return executionEnd;
+ }
+
+ public void setExecutionEnd(Date executionEnd) {
+ this.executionEnd = executionEnd;
+ }
+
+ public Date getAssignedTime() {
+ return assignedTime;
+ }
+
+ public void setAssignedTime(Date assignedTime) {
+ this.assignedTime = assignedTime;
+ }
+
+ public boolean getLocked() {
+ return locked;
+ }
+
+ public void setLocked(boolean locked) {
+ this.locked = locked;
+ }
+
+ public boolean getReviewed() {
+ return reviewed;
+ }
+
+ public void setReviewed(boolean reviewed) {
+ this.reviewed = reviewed;
+ }
+
+ public ExecutionResult getResultId() {
+ return resultId;
+ }
+
+ public void setResultId(ExecutionResult resultId) {
+ this.resultId = resultId;
+ }
+
+ public ReviewResult getReviewResultId() {
+ return reviewResultId;
+ }
+
+ public void setReviewResultId(ReviewResult reviewResultId) {
+ this.reviewResultId = reviewResultId;
+ }
+
+ public VmUser getAssignee() {
+ return assignee;
+ }
+
+ public void setAssignee(VmUser assignee) {
+ this.assignee = assignee;
+ }
+
+ public VmUser getAssigner() {
+ return assigner;
+ }
+
+ public void setAssigner(VmUser assigner) {
+ this.assigner = assigner;
+ }
+
+ public Step getStep() {
+ return step;
+ }
+
+ public void setStep(Step step) {
+ this.step = step;
+ }
+
+ public TestCaseExecution getTestCaseExecution() {
+ return testCaseExecution;
+ }
+
+ public void setTestCaseExecution(TestCaseExecution testCaseExecution) {
+ this.testCaseExecution = testCaseExecution;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExecutionStepHasAttachmentList() {
+ return executionStepHasAttachmentList;
+ }
+
+ public void setExecutionStepHasAttachmentList(List executionStepHasAttachmentList) {
+ this.executionStepHasAttachmentList = executionStepHasAttachmentList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (executionStepPK != null ? executionStepPK.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof ExecutionStep)) {
+ return false;
+ }
+ ExecutionStep other = (ExecutionStep) object;
+ return !((this.executionStepPK == null && other.executionStepPK != null)
+ || (this.executionStepPK != null
+ && !this.executionStepPK.equals(other.executionStepPK)));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.ExecutionStep[ executionStepPK=" + executionStepPK + " ]";
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExecutionStepHasIssueList() {
+ return executionStepHasIssueList;
+ }
+
+ public void setExecutionStepHasIssueList(List executionStepHasIssueList) {
+ this.executionStepHasIssueList = executionStepHasIssueList;
+ }
+
+ /**
+ * @return the reviewDate
+ */
+ public Date getReviewDate() {
+ return reviewDate;
+ }
+
+ /**
+ * @param reviewDate the reviewDate to set
+ */
+ public void setReviewDate(Date reviewDate) {
+ this.reviewDate = reviewDate;
+ }
+
+ /**
+ * @return the reviewer
+ */
+ public VmUser getReviewer() {
+ return reviewer;
+ }
+
+ /**
+ * @param reviewer the reviewer to set
+ */
+ public void setReviewer(VmUser reviewer) {
+ this.reviewer = reviewer;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExecutionStepHasVmUserList() {
+ return executionStepHasVmUserList;
+ }
+
+ public void setExecutionStepHasVmUserList(List executionStepHasVmUserList) {
+ this.executionStepHasVmUserList = executionStepHasVmUserList;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getHistoryList() {
+ return historyList;
+ }
+
+ public void setHistoryList(List historyList) {
+ this.historyList = historyList;
+ }
+
+ public History getStepHistory() {
+ return stepHistory;
+ }
+
+ public void setStepHistory(History stepHistory) {
+ this.stepHistory = stepHistory;
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/FailureMode.java b/VM-Core/src/main/java/com/validation/manager/core/db/FailureMode.java
index 0da6dbee..4b1714cd 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/FailureMode.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/FailureMode.java
@@ -13,140 +13,140 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "failure_mode")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "FailureMode.findAll",
- query = "SELECT f FROM FailureMode f")
- , @NamedQuery(name = "FailureMode.findById",
- query = "SELECT f FROM FailureMode f WHERE f.id = :id")
- , @NamedQuery(name = "FailureMode.findByName",
- query = "SELECT f FROM FailureMode f WHERE f.name = :name")})
-public class FailureMode implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @GeneratedValue(strategy = GenerationType.TABLE, generator = "FMGen")
- @TableGenerator(name = "FMGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "failure_mode",
- allocationSize = 1,
- initialValue = 1000)
- @Basic(optional = false)
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "name")
- private String name;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 65535)
- @Column(name = "description")
- private String description;
- @JoinTable(name = "risk_item_has_failure_mode", joinColumns = {
- @JoinColumn(name = "failure_mode_id", referencedColumnName = "id")},
- inverseJoinColumns = {
- @JoinColumn(name = "risk_item_id", referencedColumnName = "id")
- , @JoinColumn(name = "risk_item_FMEA_id",
- referencedColumnName = "FMEA_id")})
- @ManyToMany
- private List riskItemList;
-
- public FailureMode() {
- }
-
- public FailureMode(String name, String description) {
- this.name = name;
- this.description = description;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getRiskItemList() {
- return riskItemList;
- }
-
- public void setRiskItemList(List riskItemList) {
- this.riskItemList = riskItemList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof FailureMode)) {
- return false;
- }
- FailureMode other = (FailureMode) object;
- return !((this.id == null && other.id != null)
- || (this.id != null && !this.id.equals(other.id)));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.FailureMode[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinTable;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "failure_mode")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "FailureMode.findAll",
+ query = "SELECT f FROM FailureMode f")
+ , @NamedQuery(name = "FailureMode.findById",
+ query = "SELECT f FROM FailureMode f WHERE f.id = :id")
+ , @NamedQuery(name = "FailureMode.findByName",
+ query = "SELECT f FROM FailureMode f WHERE f.name = :name")})
+public class FailureMode implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @GeneratedValue(strategy = GenerationType.TABLE, generator = "FMGen")
+ @TableGenerator(name = "FMGen", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "failure_mode",
+ allocationSize = 1,
+ initialValue = 1_000)
+ @Basic(optional = false)
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "name")
+ private String name;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 65_535)
+ @Column(name = "description")
+ private String description;
+ @JoinTable(name = "risk_item_has_failure_mode", joinColumns = {
+ @JoinColumn(name = "failure_mode_id", referencedColumnName = "id")},
+ inverseJoinColumns = {
+ @JoinColumn(name = "risk_item_id", referencedColumnName = "id")
+ , @JoinColumn(name = "risk_item_FMEA_id",
+ referencedColumnName = "FMEA_id")})
+ @ManyToMany
+ private List riskItemList;
+
+ public FailureMode() {
+ }
+
+ public FailureMode(String name, String description) {
+ this.name = name;
+ this.description = description;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getRiskItemList() {
+ return riskItemList;
+ }
+
+ public void setRiskItemList(List riskItemList) {
+ this.riskItemList = riskItemList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof FailureMode)) {
+ return false;
+ }
+ FailureMode other = (FailureMode) object;
+ return !((this.id == null && other.id != null)
+ || (this.id != null && !this.id.equals(other.id)));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.FailureMode[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Fmea.java b/VM-Core/src/main/java/com/validation/manager/core/db/Fmea.java
index edd94860..d0472f58 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Fmea.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Fmea.java
@@ -13,172 +13,172 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinTable;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "fmea")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Fmea.findAll", query = "SELECT f FROM Fmea f")
- , @NamedQuery(name = "Fmea.findById", query = "SELECT f FROM Fmea f "
- + "WHERE f.id = :id")
- , @NamedQuery(name = "Fmea.findByName", query = "SELECT f FROM Fmea f "
- + "WHERE f.name = :name")
- , @NamedQuery(name = "Fmea.findByDescription", query = "SELECT f FROM "
- + "Fmea f WHERE f.description = :description")})
-public class Fmea implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @GeneratedValue(strategy = GenerationType.TABLE, generator = "FMEAGen")
- @TableGenerator(name = "FMEAGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "fmea",
- allocationSize = 1,
- initialValue = 1000)
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 45)
- @Column(name = "name")
- private String name;
- @Size(max = 45)
- @Column(name = "description")
- private String description;
- @JoinTable(name = "fmea_has_risk_category", joinColumns = {
- @JoinColumn(name = "FMEA_id", referencedColumnName = "id")},
- inverseJoinColumns = {
- @JoinColumn(name = "risk_category_id", referencedColumnName = "id")})
- @ManyToMany
- private List riskCategoryList;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "fmea")
- private List riskItemList;
- @OneToMany(mappedBy = "parent")
- private List fmeaList;
- @JoinColumn(name = "parent", referencedColumnName = "id")
- @ManyToOne
- private Fmea parent;
-
- public Fmea() {
- }
-
- public Fmea(String name) {
- this.name = name;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getRiskCategoryList() {
- return riskCategoryList;
- }
-
- public void setRiskCategoryList(List riskCategoryList) {
- this.riskCategoryList = riskCategoryList;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getRiskItemList() {
- return riskItemList;
- }
-
- public void setRiskItemList(List riskItemList) {
- this.riskItemList = riskItemList;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getFmeaList() {
- return fmeaList;
- }
-
- public void setFmeaList(List fmeaList) {
- this.fmeaList = fmeaList;
- }
-
- public Fmea getParent() {
- return parent;
- }
-
- public void setParent(Fmea parent) {
- this.parent = parent;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Fmea)) {
- return false;
- }
- Fmea other = (Fmea) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Fmea[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinTable;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "fmea")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Fmea.findAll", query = "SELECT f FROM Fmea f")
+ , @NamedQuery(name = "Fmea.findById", query = "SELECT f FROM Fmea f "
+ + "WHERE f.id = :id")
+ , @NamedQuery(name = "Fmea.findByName", query = "SELECT f FROM Fmea f "
+ + "WHERE f.name = :name")
+ , @NamedQuery(name = "Fmea.findByDescription", query = "SELECT f FROM "
+ + "Fmea f WHERE f.description = :description")})
+public class Fmea implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @NotNull
+ @GeneratedValue(strategy = GenerationType.TABLE, generator = "FMEAGen")
+ @TableGenerator(name = "FMEAGen", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "fmea",
+ allocationSize = 1,
+ initialValue = 1_000)
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 45)
+ @Column(name = "name")
+ private String name;
+ @Size(max = 45)
+ @Column(name = "description")
+ private String description;
+ @JoinTable(name = "fmea_has_risk_category", joinColumns = {
+ @JoinColumn(name = "FMEA_id", referencedColumnName = "id")},
+ inverseJoinColumns = {
+ @JoinColumn(name = "risk_category_id", referencedColumnName = "id")})
+ @ManyToMany
+ private List riskCategoryList;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "fmea")
+ private List riskItemList;
+ @OneToMany(mappedBy = "parent")
+ private List fmeaList;
+ @JoinColumn(name = "parent", referencedColumnName = "id")
+ @ManyToOne
+ private Fmea parent;
+
+ public Fmea() {
+ }
+
+ public Fmea(String name) {
+ this.name = name;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getRiskCategoryList() {
+ return riskCategoryList;
+ }
+
+ public void setRiskCategoryList(List riskCategoryList) {
+ this.riskCategoryList = riskCategoryList;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getRiskItemList() {
+ return riskItemList;
+ }
+
+ public void setRiskItemList(List riskItemList) {
+ this.riskItemList = riskItemList;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getFmeaList() {
+ return fmeaList;
+ }
+
+ public void setFmeaList(List fmeaList) {
+ this.fmeaList = fmeaList;
+ }
+
+ public Fmea getParent() {
+ return parent;
+ }
+
+ public void setParent(Fmea parent) {
+ this.parent = parent;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Fmea)) {
+ return false;
+ }
+ Fmea other = (Fmea) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Fmea[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Hazard.java b/VM-Core/src/main/java/com/validation/manager/core/db/Hazard.java
index 0c94bfae..1ce93ed3 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Hazard.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Hazard.java
@@ -13,141 +13,141 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "hazard")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Hazard.findAll",
- query = "SELECT h FROM Hazard h")
- , @NamedQuery(name = "Hazard.findById",
- query = "SELECT h FROM Hazard h WHERE h.id = :id")
- , @NamedQuery(name = "Hazard.findByName",
- query = "SELECT h FROM Hazard h WHERE h.name = :name")})
-public class Hazard implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "HazardGen")
- @TableGenerator(name = "HazardGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "hazard",
- allocationSize = 1,
- initialValue = 1000)
- @Basic(optional = false)
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "name")
- private String name;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 65535)
- @Column(name = "description")
- private String description;
- @JoinTable(name = "risk_item_has_hazard", joinColumns = {
- @JoinColumn(name = "hazard_id", referencedColumnName = "id")},
- inverseJoinColumns = {
- @JoinColumn(name = "risk_item_id", referencedColumnName = "id")
- , @JoinColumn(name = "risk_item_FMEA_id",
- referencedColumnName = "FMEA_id")})
- @ManyToMany
- private List riskItemList;
-
- public Hazard() {
- }
-
- public Hazard(String name, String description) {
- this.name = name;
- this.description = description;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getRiskItemList() {
- return riskItemList;
- }
-
- public void setRiskItemList(List riskItemList) {
- this.riskItemList = riskItemList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Hazard)) {
- return false;
- }
- Hazard other = (Hazard) object;
- return !((this.id == null && other.id != null)
- || (this.id != null && !this.id.equals(other.id)));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Hazard[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinTable;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "hazard")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Hazard.findAll",
+ query = "SELECT h FROM Hazard h")
+ , @NamedQuery(name = "Hazard.findById",
+ query = "SELECT h FROM Hazard h WHERE h.id = :id")
+ , @NamedQuery(name = "Hazard.findByName",
+ query = "SELECT h FROM Hazard h WHERE h.name = :name")})
+public class Hazard implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "HazardGen")
+ @TableGenerator(name = "HazardGen", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "hazard",
+ allocationSize = 1,
+ initialValue = 1_000)
+ @Basic(optional = false)
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "name")
+ private String name;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 65_535)
+ @Column(name = "description")
+ private String description;
+ @JoinTable(name = "risk_item_has_hazard", joinColumns = {
+ @JoinColumn(name = "hazard_id", referencedColumnName = "id")},
+ inverseJoinColumns = {
+ @JoinColumn(name = "risk_item_id", referencedColumnName = "id")
+ , @JoinColumn(name = "risk_item_FMEA_id",
+ referencedColumnName = "FMEA_id")})
+ @ManyToMany
+ private List riskItemList;
+
+ public Hazard() {
+ }
+
+ public Hazard(String name, String description) {
+ this.name = name;
+ this.description = description;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getRiskItemList() {
+ return riskItemList;
+ }
+
+ public void setRiskItemList(List riskItemList) {
+ this.riskItemList = riskItemList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Hazard)) {
+ return false;
+ }
+ Hazard other = (Hazard) object;
+ return !((this.id == null && other.id != null)
+ || (this.id != null && !this.id.equals(other.id)));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Hazard[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/History.java b/VM-Core/src/main/java/com/validation/manager/core/db/History.java
index ef7f7f15..b9e98349 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/History.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/History.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,287 +13,300 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinColumns;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "history")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "History.findAll",
- query = "SELECT h FROM History h")
- , @NamedQuery(name = "History.findById",
- query = "SELECT h FROM History h WHERE h.id = :id")
- , @NamedQuery(name = "History.findByVersionMajor",
- query = "SELECT h FROM History h WHERE h.versionMajor = :versionMajor")
- , @NamedQuery(name = "History.findByVersionMid",
- query = "SELECT h FROM History h WHERE h.versionMid = :versionMid")
- , @NamedQuery(name = "History.findByVersionMinor",
- query = "SELECT h FROM History h WHERE h.versionMinor = :versionMinor")
- , @NamedQuery(name = "History.findByModificationTime",
- query = "SELECT h FROM History h WHERE h.modificationTime = :modificationTime")})
-public class History implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "History_IDGEN")
- @TableGenerator(name = "History_IDGEN", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "history",
- initialValue = 1,
- allocationSize = 1)
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Column(name = "version_major")
- private int versionMajor = 0;
- @Basic(optional = false)
- @NotNull
- @Column(name = "version_mid")
- private int versionMid = 0;
- @Basic(optional = false)
- @NotNull
- @Column(name = "version_minor")
- private int versionMinor = 1;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 2147483647)
- @Column(name = "reason")
- private String reason;
- @Basic(optional = false)
- @NotNull
- @Column(name = "modification_time")
- @Temporal(TemporalType.TIMESTAMP)
- private Date modificationTime;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "history")
- private List historyFieldList;
- @JoinColumn(name = "modifier_id", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private VmUser modifierId;
- @ManyToMany(mappedBy = "historyList")
- private List executionStepList;
- @ManyToMany(mappedBy = "historyList")
- private List baselineList;
- @JoinColumn(name = "requirement_id", referencedColumnName = "id")
- @ManyToOne(optional = true)
- private Requirement requirementId;
- @JoinColumn(name = "project_id", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private Project projectId;
- @JoinColumns({
- @JoinColumn(name = "step_id", referencedColumnName = "id")
- , @JoinColumn(name = "step_test_case_id",
- referencedColumnName = "test_case_id")})
- @ManyToOne(optional = false)
- private Step step;
- @JoinColumn(name = "vm_setting_id", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private VmSetting vmSettingId;
-
- public History() {
- }
-
- public History(Integer id) {
- this.id = id;
- }
-
- public History(Integer id, int versionMajor, int versionMid,
- int versionMinor, String reason, Date modificationTime) {
- this.id = id;
- this.versionMajor = versionMajor;
- this.versionMid = versionMid;
- this.versionMinor = versionMinor;
- this.reason = reason;
- this.modificationTime = modificationTime;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public int getMajorVersion() {
- return versionMajor;
- }
-
- public void setMajorVersion(int versionMajor) {
- this.versionMajor = versionMajor;
- }
-
- public int getMidVersion() {
- return versionMid;
- }
-
- public void setMidVersion(int versionMid) {
- this.versionMid = versionMid;
- }
-
- public int getMinorVersion() {
- return versionMinor;
- }
-
- public void setMinorVersion(int versionMinor) {
- this.versionMinor = versionMinor;
- }
-
- public String getReason() {
- return reason;
- }
-
- public void setReason(String reason) {
- this.reason = reason;
- }
-
- public Date getModificationTime() {
- return modificationTime;
- }
-
- public void setModificationTime(Date modificationTime) {
- this.modificationTime = modificationTime;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getHistoryFieldList() {
- return historyFieldList;
- }
-
- public void setHistoryFieldList(List historyFieldList) {
- this.historyFieldList = historyFieldList;
- }
-
- public VmUser getModifierId() {
- return modifierId;
- }
-
- public void setModifierId(VmUser modifierId) {
- this.modifierId = modifierId;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof History)) {
- return false;
- }
- History other = (History) object;
- return !((this.id == null && other.id != null) || (this.id != null
- && !this.id.equals(other.id)));
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder("Fields: ");
- getHistoryFieldList().forEach(hf -> {
- if (!sb.toString().isEmpty()) {
- sb.append(", ");
- }
- sb.append(hf.getFieldName())
- .append("= ")
- .append(hf.getFieldValue());
- });
- return "History{" + "id=" + id + ", versionMajor=" + versionMajor
- + ", versionMid=" + versionMid + ", versionMinor="
- + versionMinor + ", reason=" + reason + ", modificationTime="
- + modificationTime + ", modifierId=" + modifierId
- + "," + sb.toString() + '}';
- }
-
- @XmlTransient
- @JsonIgnore
- public List getBaselineList() {
- return baselineList;
- }
-
- public void setBaselineList(List baselineList) {
- this.baselineList = baselineList;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExecutionStepList() {
- return executionStepList;
- }
-
- public void setExecutionStepList(List executionStepList) {
- this.executionStepList = executionStepList;
- }
-
- public Requirement getRequirementId() {
- return requirementId;
- }
-
- public void setRequirementId(Requirement requirement) {
- this.requirementId = requirement;
- }
-
- public Project getProjectId() {
- return projectId;
- }
-
- public void setProjectId(Project projectId) {
- this.projectId = projectId;
- }
-
- public Step getStep() {
- return step;
- }
-
- public void setStep(Step step) {
- this.step = step;
- }
-
- public VmSetting getVmSettingId() {
- return vmSettingId;
- }
-
- public void setVmSettingId(VmSetting vmSettingId) {
- this.vmSettingId = vmSettingId;
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinColumns;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "history")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "History.findAll",
+ query = "SELECT h FROM History h")
+ , @NamedQuery(name = "History.findById",
+ query = "SELECT h FROM History h WHERE h.id = :id")
+ , @NamedQuery(name = "History.findByVersionMajor",
+ query = "SELECT h FROM History h WHERE h.versionMajor = :versionMajor")
+ , @NamedQuery(name = "History.findByVersionMid",
+ query = "SELECT h FROM History h WHERE h.versionMid = :versionMid")
+ , @NamedQuery(name = "History.findByVersionMinor",
+ query = "SELECT h FROM History h WHERE h.versionMinor = :versionMinor")
+ , @NamedQuery(name = "History.findByModificationTime",
+ query = "SELECT h FROM History h WHERE h.modificationTime = :modificationTime")})
+public class History implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "History_IDGEN")
+ @TableGenerator(name = "History_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "history",
+ initialValue = 1,
+ allocationSize = 1)
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "version_major")
+ private int versionMajor = 0;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "version_mid")
+ private int versionMid = 0;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "version_minor")
+ private int versionMinor = 1;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 2_147_483_647)
+ @Column(name = "reason")
+ private String reason;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "modification_time")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date modificationTime;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "history")
+ private List historyFieldList;
+ @JoinColumn(name = "modifier_id", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private VmUser modifierId;
+ @ManyToMany(mappedBy = "historyList")
+ private List executionStepList;
+ @ManyToMany(mappedBy = "historyList")
+ private List baselineList;
+ @JoinColumn(name = "requirement_id", referencedColumnName = "id")
+ @ManyToOne(optional = true)
+ private Requirement requirementId;
+ @JoinColumn(name = "project_id", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private Project projectId;
+ @JoinColumns({
+ @JoinColumn(name = "step_id", referencedColumnName = "id")
+ , @JoinColumn(name = "step_test_case_id",
+ referencedColumnName = "test_case_id")})
+ @ManyToOne(optional = false)
+ private Step step;
+ @JoinColumn(name = "vm_setting_id", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private VmSetting vmSettingId;
+ @JoinColumn(name = "vm_user_id", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private VmUser vmUserId;
+
+ public History() {
+ }
+
+ public History(Integer id) {
+ this.id = id;
+ }
+
+ public History(Integer id, int versionMajor, int versionMid,
+ int versionMinor, String reason, Date modificationTime) {
+ this.id = id;
+ this.versionMajor = versionMajor;
+ this.versionMid = versionMid;
+ this.versionMinor = versionMinor;
+ this.reason = reason;
+ this.modificationTime = modificationTime;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public int getMajorVersion() {
+ return versionMajor;
+ }
+
+ public void setMajorVersion(int versionMajor) {
+ this.versionMajor = versionMajor;
+ }
+
+ public int getMidVersion() {
+ return versionMid;
+ }
+
+ public void setMidVersion(int versionMid) {
+ this.versionMid = versionMid;
+ }
+
+ public int getMinorVersion() {
+ return versionMinor;
+ }
+
+ public void setMinorVersion(int versionMinor) {
+ this.versionMinor = versionMinor;
+ }
+
+ public String getReason() {
+ return reason;
+ }
+
+ public void setReason(String reason) {
+ this.reason = reason;
+ }
+
+ public Date getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Date modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getHistoryFieldList() {
+ return historyFieldList;
+ }
+
+ public void setHistoryFieldList(List historyFieldList) {
+ this.historyFieldList = historyFieldList;
+ }
+
+ public VmUser getModifierId() {
+ return modifierId;
+ }
+
+ public void setModifierId(VmUser modifierId) {
+ this.modifierId = modifierId;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof History)) {
+ return false;
+ }
+ History other = (History) object;
+ return !((this.id == null && other.id != null) || (this.id != null
+ && !this.id.equals(other.id)));
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ getHistoryFieldList().forEach(hf -> {
+ if (sb.toString().isEmpty()) {
+ sb.append("Fields: ");
+ } else {
+ sb.append(", ");
+ }
+ sb.append(hf.getFieldName())
+ .append("= ")
+ .append(hf.getFieldValue());
+ });
+ return "History{" + "id=" + id + ", versionMajor=" + versionMajor
+ + ", versionMid=" + versionMid + ", versionMinor="
+ + versionMinor + ", reason=" + reason + ", modificationTime="
+ + modificationTime + ", modifierId=" + modifierId
+ + "," + sb.toString() + '}';
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getBaselineList() {
+ return baselineList;
+ }
+
+ public void setBaselineList(List baselineList) {
+ this.baselineList = baselineList;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExecutionStepList() {
+ return executionStepList;
+ }
+
+ public void setExecutionStepList(List executionStepList) {
+ this.executionStepList = executionStepList;
+ }
+
+ public Requirement getRequirementId() {
+ return requirementId;
+ }
+
+ public void setRequirementId(Requirement requirement) {
+ this.requirementId = requirement;
+ }
+
+ public Project getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(Project projectId) {
+ this.projectId = projectId;
+ }
+
+ public Step getStep() {
+ return step;
+ }
+
+ public void setStep(Step step) {
+ this.step = step;
+ }
+
+ public VmSetting getVmSettingId() {
+ return vmSettingId;
+ }
+
+ public void setVmSettingId(VmSetting vmSettingId) {
+ this.vmSettingId = vmSettingId;
+ }
+
+ public VmUser getVmUserId() {
+ return vmUserId;
+ }
+
+ public void setVmUserId(VmUser vmUserId) {
+ this.vmUserId = vmUserId;
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/HistoryField.java b/VM-Core/src/main/java/com/validation/manager/core/db/HistoryField.java
index 684f2ea6..ca34b2f1 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/HistoryField.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/HistoryField.java
@@ -13,146 +13,146 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.EmbeddedId;
-import javax.persistence.Entity;
-import javax.persistence.JoinColumn;
-import javax.persistence.Lob;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.Table;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "history_field")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "HistoryField.findAll",
- query = "SELECT h FROM HistoryField h")
- , @NamedQuery(name = "HistoryField.findById",
- query = "SELECT h FROM HistoryField h WHERE h.historyFieldPK.id = :id")
- , @NamedQuery(name = "HistoryField.findByFieldTypeId",
- query = "SELECT h FROM HistoryField h WHERE h.historyFieldPK.fieldTypeId = :fieldTypeId")
- , @NamedQuery(name = "HistoryField.findByHistoryId",
- query = "SELECT h FROM HistoryField h WHERE h.historyFieldPK.historyId = :historyId")
- , @NamedQuery(name = "HistoryField.findByFieldName",
- query = "SELECT h FROM HistoryField h WHERE h.fieldName = :fieldName")})
-public class HistoryField implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @EmbeddedId
- protected HistoryFieldPK historyFieldPK;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 45)
- @Column(name = "field_name")
- private String fieldName;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 2147483647)
- @Column(name = "field_value")
- private String fieldValue;
- @JoinColumn(name = "field_type_id", referencedColumnName = "id",
- insertable = false, updatable = false)
- @ManyToOne(optional = false)
- private FieldType fieldType;
- @JoinColumn(name = "history_id", referencedColumnName = "id",
- insertable = false, updatable = false)
- @ManyToOne(optional = false)
- private History history;
-
- public HistoryField() {
- }
-
- public HistoryField(HistoryFieldPK historyFieldPK) {
- this.historyFieldPK = historyFieldPK;
- }
-
- public HistoryField(HistoryFieldPK historyFieldPK, String fieldName,
- String fieldValue) {
- this.historyFieldPK = historyFieldPK;
- this.fieldName = fieldName;
- this.fieldValue = fieldValue;
- }
-
- public HistoryField(int fieldTypeId, int historyId) {
- this.historyFieldPK = new HistoryFieldPK(fieldTypeId, historyId);
- }
-
- public HistoryFieldPK getHistoryFieldPK() {
- return historyFieldPK;
- }
-
- public void setHistoryFieldPK(HistoryFieldPK historyFieldPK) {
- this.historyFieldPK = historyFieldPK;
- }
-
- public String getFieldName() {
- return fieldName;
- }
-
- public void setFieldName(String fieldName) {
- this.fieldName = fieldName;
- }
-
- public String getFieldValue() {
- return fieldValue;
- }
-
- public void setFieldValue(String fieldValue) {
- this.fieldValue = fieldValue;
- }
-
- public FieldType getFieldType() {
- return fieldType;
- }
-
- public void setFieldType(FieldType fieldType) {
- this.fieldType = fieldType;
- }
-
- public History getHistory() {
- return history;
- }
-
- public void setHistory(History history) {
- this.history = history;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (historyFieldPK != null ? historyFieldPK.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof HistoryField)) {
- return false;
- }
- HistoryField other = (HistoryField) object;
- return !((this.historyFieldPK == null && other.historyFieldPK != null)
- || (this.historyFieldPK != null
- && !this.historyFieldPK.equals(other.historyFieldPK)));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.HistoryField[ historyFieldPK="
- + historyFieldPK + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.EmbeddedId;
+import javax.persistence.Entity;
+import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "history_field")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "HistoryField.findAll",
+ query = "SELECT h FROM HistoryField h")
+ , @NamedQuery(name = "HistoryField.findById",
+ query = "SELECT h FROM HistoryField h WHERE h.historyFieldPK.id = :id")
+ , @NamedQuery(name = "HistoryField.findByFieldTypeId",
+ query = "SELECT h FROM HistoryField h WHERE h.historyFieldPK.fieldTypeId = :fieldTypeId")
+ , @NamedQuery(name = "HistoryField.findByHistoryId",
+ query = "SELECT h FROM HistoryField h WHERE h.historyFieldPK.historyId = :historyId")
+ , @NamedQuery(name = "HistoryField.findByFieldName",
+ query = "SELECT h FROM HistoryField h WHERE h.fieldName = :fieldName")})
+public class HistoryField implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @EmbeddedId
+ protected HistoryFieldPK historyFieldPK;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 45)
+ @Column(name = "field_name")
+ private String fieldName;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 2_147_483_647)
+ @Column(name = "field_value")
+ private String fieldValue;
+ @JoinColumn(name = "field_type_id", referencedColumnName = "id",
+ insertable = false, updatable = false)
+ @ManyToOne(optional = false)
+ private FieldType fieldType;
+ @JoinColumn(name = "history_id", referencedColumnName = "id",
+ insertable = false, updatable = false)
+ @ManyToOne(optional = false)
+ private History history;
+
+ public HistoryField() {
+ }
+
+ public HistoryField(HistoryFieldPK historyFieldPK) {
+ this.historyFieldPK = historyFieldPK;
+ }
+
+ public HistoryField(HistoryFieldPK historyFieldPK, String fieldName,
+ String fieldValue) {
+ this.historyFieldPK = historyFieldPK;
+ this.fieldName = fieldName;
+ this.fieldValue = fieldValue;
+ }
+
+ public HistoryField(int fieldTypeId, int historyId) {
+ this.historyFieldPK = new HistoryFieldPK(fieldTypeId, historyId);
+ }
+
+ public HistoryFieldPK getHistoryFieldPK() {
+ return historyFieldPK;
+ }
+
+ public void setHistoryFieldPK(HistoryFieldPK historyFieldPK) {
+ this.historyFieldPK = historyFieldPK;
+ }
+
+ public String getFieldName() {
+ return fieldName;
+ }
+
+ public void setFieldName(String fieldName) {
+ this.fieldName = fieldName;
+ }
+
+ public String getFieldValue() {
+ return fieldValue;
+ }
+
+ public void setFieldValue(String fieldValue) {
+ this.fieldValue = fieldValue;
+ }
+
+ public FieldType getFieldType() {
+ return fieldType;
+ }
+
+ public void setFieldType(FieldType fieldType) {
+ this.fieldType = fieldType;
+ }
+
+ public History getHistory() {
+ return history;
+ }
+
+ public void setHistory(History history) {
+ this.history = history;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (historyFieldPK != null ? historyFieldPK.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof HistoryField)) {
+ return false;
+ }
+ HistoryField other = (HistoryField) object;
+ return !((this.historyFieldPK == null && other.historyFieldPK != null)
+ || (this.historyFieldPK != null
+ && !this.historyFieldPK.equals(other.historyFieldPK)));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.HistoryField[ historyFieldPK="
+ + historyFieldPK + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Investigation.java b/VM-Core/src/main/java/com/validation/manager/core/db/Investigation.java
index 45d0a89f..7eb0c3c7 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Investigation.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Investigation.java
@@ -13,130 +13,130 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "investigation")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Investigation.findAll",
- query = "SELECT i FROM Investigation i")
- , @NamedQuery(name = "Investigation.findById",
- query = "SELECT i FROM Investigation i WHERE i.id = :id")})
-public class Investigation implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "InvestigationGen")
- @TableGenerator(name = "InvestigationGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "investigation",
- allocationSize = 1,
- initialValue = 1000)
- @NotNull
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 65535)
- @Column(name = "description")
- private String description;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "investigation")
- private List userHasInvestigationList;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "investigation")
- private List exceptionHasInvestigationList;
-
- public Investigation() {
- }
-
- public Investigation(String description) {
- this.description = description;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getUserHasInvestigationList() {
- return userHasInvestigationList;
- }
-
- public void setUserHasInvestigationList(List userHasInvestigationList) {
- this.userHasInvestigationList = userHasInvestigationList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Investigation)) {
- return false;
- }
- Investigation other = (Investigation) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Investigation[ id=" + id + " ]";
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExceptionHasInvestigationList() {
- return exceptionHasInvestigationList;
- }
-
- public void setExceptionHasInvestigationList(List exceptionHasInvestigationList) {
- this.exceptionHasInvestigationList = exceptionHasInvestigationList;
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "investigation")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Investigation.findAll",
+ query = "SELECT i FROM Investigation i")
+ , @NamedQuery(name = "Investigation.findById",
+ query = "SELECT i FROM Investigation i WHERE i.id = :id")})
+public class Investigation implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "InvestigationGen")
+ @TableGenerator(name = "InvestigationGen", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "investigation",
+ allocationSize = 1,
+ initialValue = 1_000)
+ @NotNull
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 65_535)
+ @Column(name = "description")
+ private String description;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "investigation")
+ private List userHasInvestigationList;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "investigation")
+ private List exceptionHasInvestigationList;
+
+ public Investigation() {
+ }
+
+ public Investigation(String description) {
+ this.description = description;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getUserHasInvestigationList() {
+ return userHasInvestigationList;
+ }
+
+ public void setUserHasInvestigationList(List userHasInvestigationList) {
+ this.userHasInvestigationList = userHasInvestigationList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Investigation)) {
+ return false;
+ }
+ Investigation other = (Investigation) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Investigation[ id=" + id + " ]";
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExceptionHasInvestigationList() {
+ return exceptionHasInvestigationList;
+ }
+
+ public void setExceptionHasInvestigationList(List exceptionHasInvestigationList) {
+ this.exceptionHasInvestigationList = exceptionHasInvestigationList;
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Issue.java b/VM-Core/src/main/java/com/validation/manager/core/db/Issue.java
index bf097a94..1ba3108f 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Issue.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Issue.java
@@ -13,176 +13,176 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.EmbeddedId;
-import javax.persistence.Entity;
-import javax.persistence.JoinColumn;
-import javax.persistence.Lob;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "issue")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Issue.findAll", query = "SELECT i FROM Issue i")
- , @NamedQuery(name = "Issue.findById",
- query = "SELECT i FROM Issue i WHERE i.issuePK.id = :id")
- , @NamedQuery(name = "Issue.findByIssueTypeId",
- query = "SELECT i FROM Issue i WHERE i.issuePK.issueTypeId = :issueTypeId")
- , @NamedQuery(name = "Issue.findByTitle",
- query = "SELECT i FROM Issue i WHERE i.title = :title")
- , @NamedQuery(name = "Issue.findByCreationTime",
- query = "SELECT i FROM Issue i WHERE i.creationTime = :creationTime")})
-public class Issue implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @EmbeddedId
- protected IssuePK issuePK;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "title")
- private String title;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 2147483647)
- @Column(name = "description")
- private String description;
- @Basic(optional = false)
- @NotNull
- @Column(name = "creationTime")
- @Temporal(TemporalType.TIMESTAMP)
- private Date creationTime;
- @JoinColumn(name = "issue_resolution_id", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private IssueResolution issueResolutionId;
- @JoinColumn(name = "issue_type_id", referencedColumnName = "id",
- insertable = false, updatable = false)
- @ManyToOne(optional = false)
- private IssueType issueType;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "issue")
- private List executionStepHasIssueList;
-
- public Issue() {
- }
-
- public Issue(IssuePK issuePK) {
- this.issuePK = issuePK;
- }
-
- public Issue(IssuePK issuePK, String title, String description,
- Date creationTime) {
- this.issuePK = issuePK;
- this.title = title;
- this.description = description;
- this.creationTime = creationTime;
- }
-
- public Issue(int issueTypeId) {
- this.issuePK = new IssuePK(issueTypeId);
- }
-
- public IssuePK getIssuePK() {
- return issuePK;
- }
-
- public void setIssuePK(IssuePK issuePK) {
- this.issuePK = issuePK;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public Date getCreationTime() {
- return creationTime;
- }
-
- public void setCreationTime(Date creationTime) {
- this.creationTime = creationTime;
- }
-
- public IssueResolution getIssueResolutionId() {
- return issueResolutionId;
- }
-
- public void setIssueResolutionId(IssueResolution issueResolutionId) {
- this.issueResolutionId = issueResolutionId;
- }
-
- public IssueType getIssueType() {
- return issueType;
- }
-
- public void setIssueType(IssueType issueType) {
- this.issueType = issueType;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getExecutionStepHasIssueList() {
- return executionStepHasIssueList;
- }
-
- public void setExecutionStepHasIssueList(List executionStepHasIssueList) {
- this.executionStepHasIssueList = executionStepHasIssueList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (issuePK != null ? issuePK.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Issue)) {
- return false;
- }
- Issue other = (Issue) object;
- return !((this.issuePK == null && other.issuePK != null)
- || (this.issuePK != null && !this.issuePK.equals(other.issuePK)));
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Issue[ issuePK=" + issuePK + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.EmbeddedId;
+import javax.persistence.Entity;
+import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "issue")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Issue.findAll", query = "SELECT i FROM Issue i")
+ , @NamedQuery(name = "Issue.findById",
+ query = "SELECT i FROM Issue i WHERE i.issuePK.id = :id")
+ , @NamedQuery(name = "Issue.findByIssueTypeId",
+ query = "SELECT i FROM Issue i WHERE i.issuePK.issueTypeId = :issueTypeId")
+ , @NamedQuery(name = "Issue.findByTitle",
+ query = "SELECT i FROM Issue i WHERE i.title = :title")
+ , @NamedQuery(name = "Issue.findByCreationTime",
+ query = "SELECT i FROM Issue i WHERE i.creationTime = :creationTime")})
+public class Issue implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @EmbeddedId
+ protected IssuePK issuePK;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "title")
+ private String title;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 2_147_483_647)
+ @Column(name = "description")
+ private String description;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "creationTime")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date creationTime;
+ @JoinColumn(name = "issue_resolution_id", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private IssueResolution issueResolutionId;
+ @JoinColumn(name = "issue_type_id", referencedColumnName = "id",
+ insertable = false, updatable = false)
+ @ManyToOne(optional = false)
+ private IssueType issueType;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "issue")
+ private List executionStepHasIssueList;
+
+ public Issue() {
+ }
+
+ public Issue(IssuePK issuePK) {
+ this.issuePK = issuePK;
+ }
+
+ public Issue(IssuePK issuePK, String title, String description,
+ Date creationTime) {
+ this.issuePK = issuePK;
+ this.title = title;
+ this.description = description;
+ this.creationTime = creationTime;
+ }
+
+ public Issue(int issueTypeId) {
+ this.issuePK = new IssuePK(issueTypeId);
+ }
+
+ public IssuePK getIssuePK() {
+ return issuePK;
+ }
+
+ public void setIssuePK(IssuePK issuePK) {
+ this.issuePK = issuePK;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Date getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Date creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public IssueResolution getIssueResolutionId() {
+ return issueResolutionId;
+ }
+
+ public void setIssueResolutionId(IssueResolution issueResolutionId) {
+ this.issueResolutionId = issueResolutionId;
+ }
+
+ public IssueType getIssueType() {
+ return issueType;
+ }
+
+ public void setIssueType(IssueType issueType) {
+ this.issueType = issueType;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getExecutionStepHasIssueList() {
+ return executionStepHasIssueList;
+ }
+
+ public void setExecutionStepHasIssueList(List executionStepHasIssueList) {
+ this.executionStepHasIssueList = executionStepHasIssueList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (issuePK != null ? issuePK.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Issue)) {
+ return false;
+ }
+ Issue other = (Issue) object;
+ return !((this.issuePK == null && other.issuePK != null)
+ || (this.issuePK != null && !this.issuePK.equals(other.issuePK)));
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Issue[ issuePK=" + issuePK + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/IssueResolution.java b/VM-Core/src/main/java/com/validation/manager/core/db/IssueResolution.java
index 9816c790..e0b3c8d4 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/IssueResolution.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/IssueResolution.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,123 +13,123 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "issue_resolution")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "IssueResolution.findAll",
- query = "SELECT i FROM IssueResolution i")
- , @NamedQuery(name = "IssueResolution.findById",
- query = "SELECT i FROM IssueResolution i WHERE i.id = :id")
- , @NamedQuery(name = "IssueResolution.findByName",
- query = "SELECT i FROM IssueResolution i WHERE i.name = :name")})
-public class IssueResolution implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "id")
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "ISSUE_RESOLUTION_IDGEN")
- @TableGenerator(name = "ISSUE_RESOLUTION_IDGEN", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "issue_resolution",
- initialValue = 1,
- allocationSize = 1)
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 45)
- @Column(name = "name")
- private String name;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "issueResolutionId")
- private List issueList;
-
- public IssueResolution() {
- }
-
- public IssueResolution(Integer id) {
- this.id = id;
- }
-
- public IssueResolution(Integer id, String name) {
- this.id = id;
- this.name = name;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getIssueList() {
- return issueList;
- }
-
- public void setIssueList(List issueList) {
- this.issueList = issueList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof IssueResolution)) {
- return false;
- }
- IssueResolution other = (IssueResolution) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.IssueResolution[ id=" + id + " ]";
- }
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "issue_resolution")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "IssueResolution.findAll",
+ query = "SELECT i FROM IssueResolution i")
+ , @NamedQuery(name = "IssueResolution.findById",
+ query = "SELECT i FROM IssueResolution i WHERE i.id = :id")
+ , @NamedQuery(name = "IssueResolution.findByName",
+ query = "SELECT i FROM IssueResolution i WHERE i.name = :name")})
+public class IssueResolution implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "id")
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "ISSUE_RESOLUTION_IDGEN")
+ @TableGenerator(name = "ISSUE_RESOLUTION_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "issue_resolution",
+ initialValue = 1_000,
+ allocationSize = 1)
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 45)
+ @Column(name = "name")
+ private String name;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "issueResolutionId")
+ private List issueList;
+
+ public IssueResolution() {
+ }
+
+ public IssueResolution(Integer id) {
+ this.id = id;
+ }
+
+ public IssueResolution(Integer id, String name) {
+ this.id = id;
+ this.name = name;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getIssueList() {
+ return issueList;
+ }
+
+ public void setIssueList(List issueList) {
+ this.issueList = issueList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof IssueResolution)) {
+ return false;
+ }
+ IssueResolution other = (IssueResolution) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.IssueResolution[ id=" + id + " ]";
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/IssueType.java b/VM-Core/src/main/java/com/validation/manager/core/db/IssueType.java
index 7ffc2ada..7aee0e0a 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/IssueType.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/IssueType.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,137 +13,132 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "issue_type")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "IssueType.findAll",
- query = "SELECT i FROM IssueType i")
- , @NamedQuery(name = "IssueType.findById",
- query = "SELECT i FROM IssueType i WHERE i.id = :id")
- , @NamedQuery(name = "IssueType.findByTypeName",
- query = "SELECT i FROM IssueType i WHERE i.typeName = :typeName")})
-public class IssueType implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @NotNull
- @Column(name = "id")
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "ISSUE_TYPE_IDGEN")
- @TableGenerator(name = "ISSUE_TYPE_IDGEN", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "issue_type",
- initialValue = 1,
- allocationSize = 1)
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 45)
- @Column(name = "type_name")
- private String typeName;
- @Lob
- @Size(max = 2147483647)
- @Column(name = "description")
- private String description;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "issueType")
- private List issueList;
-
- public IssueType() {
- }
-
- public IssueType(Integer id) {
- this.id = id;
- }
-
- public IssueType(Integer id, String typeName) {
- this.id = id;
- this.typeName = typeName;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getTypeName() {
- return typeName;
- }
-
- public void setTypeName(String typeName) {
- this.typeName = typeName;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getIssueList() {
- return issueList;
- }
-
- public void setIssueList(List issueList) {
- this.issueList = issueList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof IssueType)) {
- return false;
- }
- IssueType other = (IssueType) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.IssueType[ id=" + id + " ]";
- }
-
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "issue_type")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "IssueType.findAll",
+ query = "SELECT i FROM IssueType i")
+ , @NamedQuery(name = "IssueType.findById",
+ query = "SELECT i FROM IssueType i WHERE i.id = :id")
+ , @NamedQuery(name = "IssueType.findByTypeName",
+ query = "SELECT i FROM IssueType i WHERE i.typeName = :typeName")})
+public class IssueType implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "id")
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "ISSUE_TYPE_IDGEN")
+ @TableGenerator(name = "ISSUE_TYPE_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "issue_type",
+ initialValue = 1_000,
+ allocationSize = 1)
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 45)
+ @Column(name = "type_name")
+ private String typeName;
+ @Lob
+ @Size(max = 2_147_483_647)
+ @Column(name = "description")
+ private String description;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "issueType")
+ private List issueList;
+
+ public IssueType() {
+ }
+
+ public IssueType(String typeName) {
+ this.typeName = typeName;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getTypeName() {
+ return typeName;
+ }
+
+ public void setTypeName(String typeName) {
+ this.typeName = typeName;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getIssueList() {
+ return issueList;
+ }
+
+ public void setIssueList(List issueList) {
+ this.issueList = issueList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof IssueType)) {
+ return false;
+ }
+ IssueType other = (IssueType) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.IssueType[ id=" + id + " ]";
+ }
+
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Notification.java b/VM-Core/src/main/java/com/validation/manager/core/db/Notification.java
index a3c8912d..f4e3ceb8 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Notification.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Notification.java
@@ -13,182 +13,182 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import java.util.Date;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.EmbeddedId;
-import javax.persistence.Entity;
-import javax.persistence.JoinColumn;
-import javax.persistence.Lob;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "notification")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Notification.findAll",
- query = "SELECT n FROM Notification n")
- , @NamedQuery(name = "Notification.findById",
- query = "SELECT n FROM Notification n WHERE n.notificationPK.id = :id")
- , @NamedQuery(name = "Notification.findByNotificationTypeId",
- query = "SELECT n FROM Notification n WHERE n.notificationPK.notificationTypeId = :notificationTypeId")
- , @NamedQuery(name = "Notification.findByCreationDate",
- query = "SELECT n FROM Notification n WHERE n.creationDate = :creationDate")
- , @NamedQuery(name = "Notification.findByAcknowledgeDate",
- query = "SELECT n FROM Notification n WHERE n.acknowledgeDate = :acknowledgeDate")})
-public class Notification implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @EmbeddedId
- protected NotificationPK notificationPK;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(min = 1, max = 2147483647)
- @Column(name = "content")
- private String content;
- @Basic(optional = false)
- @NotNull
- @Column(name = "creation_date")
- @Temporal(TemporalType.TIMESTAMP)
- private Date creationDate;
- @Column(name = "acknowledge_date")
- @Temporal(TemporalType.TIMESTAMP)
- private Date acknowledgeDate;
- @JoinColumn(name = "notification_type_id", referencedColumnName = "id",
- insertable = false, updatable = false)
- @ManyToOne(optional = false)
- private NotificationType notificationType;
- @JoinColumn(name = "target_user", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private VmUser targetUser;
- @JoinColumn(name = "author", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private VmUser author;
- @Basic(optional = false)
- @NotNull
- @Column(name = "archieved")
- private boolean archieved;
-
- public Notification() {
- }
-
- public Notification(NotificationPK notificationPK) {
- this.notificationPK = notificationPK;
- }
-
- public Notification(NotificationPK notificationPK, String content, Date creationDate) {
- this.notificationPK = notificationPK;
- this.content = content;
- this.creationDate = creationDate;
- }
-
- public Notification(int id, int notificationTypeId) {
- this.notificationPK = new NotificationPK(id, notificationTypeId);
- }
-
- public NotificationPK getNotificationPK() {
- return notificationPK;
- }
-
- public void setNotificationPK(NotificationPK notificationPK) {
- this.notificationPK = notificationPK;
- }
-
- public String getContent() {
- return content;
- }
-
- public void setContent(String content) {
- this.content = content;
- }
-
- public Date getCreationDate() {
- return creationDate;
- }
-
- public void setCreationDate(Date creationDate) {
- this.creationDate = creationDate;
- }
-
- public Date getAcknowledgeDate() {
- return acknowledgeDate;
- }
-
- public void setAcknowledgeDate(Date acknowledgeDate) {
- this.acknowledgeDate = acknowledgeDate;
- }
-
- public NotificationType getNotificationType() {
- return notificationType;
- }
-
- public void setNotificationType(NotificationType notificationType) {
- this.notificationType = notificationType;
- }
-
- public VmUser getTargetUser() {
- return targetUser;
- }
-
- public void setTargetUser(VmUser targetUser) {
- this.targetUser = targetUser;
- }
-
- public VmUser getAuthor() {
- return author;
- }
-
- public void setAuthor(VmUser author) {
- this.author = author;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (notificationPK != null ? notificationPK.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
- // TODO: Warning - this method won't work in the case the id fields are not set
- if (!(object instanceof Notification)) {
- return false;
- }
- Notification other = (Notification) object;
- if ((this.notificationPK == null && other.notificationPK != null) || (this.notificationPK != null && !this.notificationPK.equals(other.notificationPK))) {
- return false;
- }
- return true;
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Notification[ notificationPK=" + notificationPK + " ]";
- }
-
- public boolean getArchieved() {
- return archieved;
- }
-
- public void setArchieved(boolean archieved) {
- this.archieved = archieved;
- }
-
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import java.util.Date;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.EmbeddedId;
+import javax.persistence.Entity;
+import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "notification")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Notification.findAll",
+ query = "SELECT n FROM Notification n")
+ , @NamedQuery(name = "Notification.findById",
+ query = "SELECT n FROM Notification n WHERE n.notificationPK.id = :id")
+ , @NamedQuery(name = "Notification.findByNotificationTypeId",
+ query = "SELECT n FROM Notification n WHERE n.notificationPK.notificationTypeId = :notificationTypeId")
+ , @NamedQuery(name = "Notification.findByCreationDate",
+ query = "SELECT n FROM Notification n WHERE n.creationDate = :creationDate")
+ , @NamedQuery(name = "Notification.findByAcknowledgeDate",
+ query = "SELECT n FROM Notification n WHERE n.acknowledgeDate = :acknowledgeDate")})
+public class Notification implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @EmbeddedId
+ protected NotificationPK notificationPK;
+ @Basic(optional = false)
+ @NotNull
+ @Lob
+ @Size(min = 1, max = 2_147_483_647)
+ @Column(name = "content")
+ private String content;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "creation_date")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date creationDate;
+ @Column(name = "acknowledge_date")
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date acknowledgeDate;
+ @JoinColumn(name = "notification_type_id", referencedColumnName = "id",
+ insertable = false, updatable = false)
+ @ManyToOne(optional = false)
+ private NotificationType notificationType;
+ @JoinColumn(name = "target_user", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private VmUser targetUser;
+ @JoinColumn(name = "author", referencedColumnName = "id")
+ @ManyToOne(optional = false)
+ private VmUser author;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "archieved")
+ private boolean archieved;
+
+ public Notification() {
+ }
+
+ public Notification(NotificationPK notificationPK) {
+ this.notificationPK = notificationPK;
+ }
+
+ public Notification(NotificationPK notificationPK, String content, Date creationDate) {
+ this.notificationPK = notificationPK;
+ this.content = content;
+ this.creationDate = creationDate;
+ }
+
+ public Notification(int id, int notificationTypeId) {
+ this.notificationPK = new NotificationPK(id, notificationTypeId);
+ }
+
+ public NotificationPK getNotificationPK() {
+ return notificationPK;
+ }
+
+ public void setNotificationPK(NotificationPK notificationPK) {
+ this.notificationPK = notificationPK;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public Date getCreationDate() {
+ return creationDate;
+ }
+
+ public void setCreationDate(Date creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public Date getAcknowledgeDate() {
+ return acknowledgeDate;
+ }
+
+ public void setAcknowledgeDate(Date acknowledgeDate) {
+ this.acknowledgeDate = acknowledgeDate;
+ }
+
+ public NotificationType getNotificationType() {
+ return notificationType;
+ }
+
+ public void setNotificationType(NotificationType notificationType) {
+ this.notificationType = notificationType;
+ }
+
+ public VmUser getTargetUser() {
+ return targetUser;
+ }
+
+ public void setTargetUser(VmUser targetUser) {
+ this.targetUser = targetUser;
+ }
+
+ public VmUser getAuthor() {
+ return author;
+ }
+
+ public void setAuthor(VmUser author) {
+ this.author = author;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (notificationPK != null ? notificationPK.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+ // TODO: Warning - this method won't work in the case the id fields are not set
+ if (!(object instanceof Notification)) {
+ return false;
+ }
+ Notification other = (Notification) object;
+ if ((this.notificationPK == null && other.notificationPK != null) || (this.notificationPK != null && !this.notificationPK.equals(other.notificationPK))) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Notification[ notificationPK=" + notificationPK + " ]";
+ }
+
+ public boolean getArchieved() {
+ return archieved;
+ }
+
+ public void setArchieved(boolean archieved) {
+ this.archieved = archieved;
+ }
+
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/NotificationPK.java b/VM-Core/src/main/java/com/validation/manager/core/db/NotificationPK.java
index 2945c91a..59f4b8d2 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/NotificationPK.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/NotificationPK.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,81 +13,92 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import java.io.Serializable;
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Embeddable;
-import javax.validation.constraints.NotNull;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Embeddable
-public class NotificationPK implements Serializable {
-
- @Basic(optional = false)
- @NotNull
- @Column(name = "id")
- private int id;
- @Basic(optional = false)
- @NotNull
- @Column(name = "notification_type_id")
- private int notificationTypeId;
-
- public NotificationPK() {
- }
-
- public NotificationPK(int id, int notificationTypeId) {
- this.id = id;
- this.notificationTypeId = notificationTypeId;
- }
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public int getNotificationTypeId() {
- return notificationTypeId;
- }
-
- public void setNotificationTypeId(int notificationTypeId) {
- this.notificationTypeId = notificationTypeId;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (int) id;
- hash += (int) notificationTypeId;
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
- // TODO: Warning - this method won't work in the case the id fields are not set
- if (!(object instanceof NotificationPK)) {
- return false;
- }
- NotificationPK other = (NotificationPK) object;
- if (this.id != other.id) {
- return false;
- }
- if (this.notificationTypeId != other.notificationTypeId) {
- return false;
- }
- return true;
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.NotificationPK[ id=" + id + ", notificationTypeId=" + notificationTypeId + " ]";
- }
-
-}
+package com.validation.manager.core.db;
+
+import java.io.Serializable;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Embeddable;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Embeddable
+public class NotificationPK implements Serializable {
+
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "id")
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "Notification_IDGEN")
+ @TableGenerator(name = "Notification_IDGEN", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "notification",
+ initialValue = 1,
+ allocationSize = 1)
+ private int id;
+ @Basic(optional = false)
+ @NotNull
+ @Column(name = "notification_type_id")
+ private int notificationTypeId;
+
+ public NotificationPK() {
+ }
+
+ public NotificationPK(int id, int notificationTypeId) {
+ this.id = id;
+ this.notificationTypeId = notificationTypeId;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public int getNotificationTypeId() {
+ return notificationTypeId;
+ }
+
+ public void setNotificationTypeId(int notificationTypeId) {
+ this.notificationTypeId = notificationTypeId;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (int) id;
+ hash += (int) notificationTypeId;
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+ // TODO: Warning - this method won't work in the case the id fields are not set
+ if (!(object instanceof NotificationPK)) {
+ return false;
+ }
+ NotificationPK other = (NotificationPK) object;
+ if (this.id != other.id) {
+ return false;
+ }
+ if (this.notificationTypeId != other.notificationTypeId) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.NotificationPK[ id=" + id + ", notificationTypeId=" + notificationTypeId + " ]";
+ }
+
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Project.java b/VM-Core/src/main/java/com/validation/manager/core/db/Project.java
index 3158f241..0d1bf42b 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Project.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Project.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,190 +13,193 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import com.validation.manager.core.history.Versionable;
-import java.io.Serializable;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "project")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Project.findAll",
- query = "SELECT p FROM Project p")
- , @NamedQuery(name = "Project.findById",
- query = "SELECT p FROM Project p WHERE p.id = :id")
- , @NamedQuery(name = "Project.findByName",
- query = "SELECT p FROM Project p WHERE p.name = :name")})
-public class Project extends Versionable implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "ProjectGen")
- @TableGenerator(name = "ProjectGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "project",
- allocationSize = 1,
- initialValue = 1000)
- @NotNull
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "name")
- private String name;
- @Lob
- @Size(max = 2147483647)
- @Column(name = "notes")
- private String notes;
- @JoinTable(name = "project_has_test_project", joinColumns = {
- @JoinColumn(name = "project_id", referencedColumnName = "id")},
- inverseJoinColumns = {
- @JoinColumn(name = "test_project_id",
- referencedColumnName = "id")})
- @ManyToMany
- private List testProjectList;
- @OneToMany(mappedBy = "parentProjectId")
- private List projectList;
- @JoinColumn(name = "parent_project_id", referencedColumnName = "id")
- @ManyToOne
- private Project parentProjectId;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "project")
- private List requirementSpecList;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "projectId")
- private List historyList;
-
- public Project(String name) {
- this.name = name;
- }
-
- public Project() {
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getNotes() {
- return notes;
- }
-
- public void setNotes(String notes) {
- this.notes = notes;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getTestProjectList() {
- return testProjectList;
- }
-
- public void setTestProjectList(List testProjectList) {
- this.testProjectList = testProjectList;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getProjectList() {
- return projectList;
- }
-
- public void setProjectList(List projectList) {
- this.projectList = projectList;
- }
-
- public Project getParentProjectId() {
- return parentProjectId;
- }
-
- public void setParentProjectId(Project parentProjectId) {
- this.parentProjectId = parentProjectId;
- }
-
- @XmlTransient
- @JsonIgnore
- public List getRequirementSpecList() {
- return requirementSpecList;
- }
-
- public void setRequirementSpecList(List requirementSpecList) {
- this.requirementSpecList = requirementSpecList;
- }
-
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (id != null ? id.hashCode() : 0);
- return hash;
- }
-
- @Override
- public boolean equals(Object object) {
-
- if (!(object instanceof Project)) {
- return false;
- }
- Project other = (Project) object;
- return this.id.equals(other.id);
- }
-
- @Override
- public String toString() {
- return "com.validation.manager.core.db.Project[ id=" + id + " ]";
- }
-
- @XmlTransient
- @JsonIgnore
- @Override
- public List getHistoryList() {
- return historyList;
- }
-
- @Override
- public void setHistoryList(List historyList) {
- this.historyList = historyList;
- }
-}
+package com.validation.manager.core.db;
+
+import com.validation.manager.core.history.Auditable;
+import com.validation.manager.core.history.Versionable;
+import java.io.Serializable;
+import java.util.List;
+import javax.persistence.Basic;
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinTable;
+import javax.persistence.Lob;
+import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.persistence.TableGenerator;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlTransient;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+/**
+ *
+ * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
+ */
+@Entity
+@Table(name = "project")
+@XmlRootElement
+@NamedQueries({
+ @NamedQuery(name = "Project.findAll",
+ query = "SELECT p FROM Project p")
+ , @NamedQuery(name = "Project.findById",
+ query = "SELECT p FROM Project p WHERE p.id = :id")
+ , @NamedQuery(name = "Project.findByName",
+ query = "SELECT p FROM Project p WHERE p.name = :name")})
+public class Project extends Versionable implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ @Id
+ @Basic(optional = false)
+ @GeneratedValue(strategy = GenerationType.TABLE,
+ generator = "ProjectGen")
+ @TableGenerator(name = "ProjectGen", table = "vm_id",
+ pkColumnName = "table_name",
+ valueColumnName = "last_id",
+ pkColumnValue = "project",
+ allocationSize = 1,
+ initialValue = 1_000)
+ @NotNull
+ @Column(name = "id")
+ private Integer id;
+ @Basic(optional = false)
+ @NotNull
+ @Size(min = 1, max = 255)
+ @Column(name = "name")
+ @Auditable
+ private String name;
+ @Lob
+ @Size(max = 2_147_483_647)
+ @Column(name = "notes")
+ @Auditable
+ private String notes;
+ @JoinTable(name = "project_has_test_project", joinColumns = {
+ @JoinColumn(name = "project_id", referencedColumnName = "id")},
+ inverseJoinColumns = {
+ @JoinColumn(name = "test_project_id",
+ referencedColumnName = "id")})
+ @ManyToMany
+ private List testProjectList;
+ @OneToMany(mappedBy = "parentProjectId")
+ private List projectList;
+ @JoinColumn(name = "parent_project_id", referencedColumnName = "id")
+ @ManyToOne
+ private Project parentProjectId;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "project")
+ private List requirementSpecList;
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "projectId")
+ private List historyList;
+
+ public Project(String name) {
+ this.name = name;
+ }
+
+ public Project() {
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getNotes() {
+ return notes;
+ }
+
+ public void setNotes(String notes) {
+ this.notes = notes;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getTestProjectList() {
+ return testProjectList;
+ }
+
+ public void setTestProjectList(List testProjectList) {
+ this.testProjectList = testProjectList;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getProjectList() {
+ return projectList;
+ }
+
+ public void setProjectList(List projectList) {
+ this.projectList = projectList;
+ }
+
+ public Project getParentProjectId() {
+ return parentProjectId;
+ }
+
+ public void setParentProjectId(Project parentProjectId) {
+ this.parentProjectId = parentProjectId;
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ public List getRequirementSpecList() {
+ return requirementSpecList;
+ }
+
+ public void setRequirementSpecList(List requirementSpecList) {
+ this.requirementSpecList = requirementSpecList;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+
+ if (!(object instanceof Project)) {
+ return false;
+ }
+ Project other = (Project) object;
+ return this.id.equals(other.id);
+ }
+
+ @Override
+ public String toString() {
+ return "com.validation.manager.core.db.Project[ id=" + id + " ]";
+ }
+
+ @XmlTransient
+ @JsonIgnore
+ @Override
+ public List getHistoryList() {
+ return historyList;
+ }
+
+ @Override
+ public void setHistoryList(List historyList) {
+ this.historyList = historyList;
+ }
+}
diff --git a/VM-Core/src/main/java/com/validation/manager/core/db/Requirement.java b/VM-Core/src/main/java/com/validation/manager/core/db/Requirement.java
index bd0f08d0..bbadbe2b 100644
--- a/VM-Core/src/main/java/com/validation/manager/core/db/Requirement.java
+++ b/VM-Core/src/main/java/com/validation/manager/core/db/Requirement.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2017 Javier A. Ortiz Bultron javier.ortiz.78@gmail.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,265 +13,265 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.validation.manager.core.db;
-
-import com.validation.manager.core.history.Auditable;
-import com.validation.manager.core.history.Versionable;
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
-import javax.persistence.Basic;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinColumns;
-import javax.persistence.JoinTable;
-import javax.persistence.Lob;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-import javax.persistence.TableGenerator;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import org.codehaus.jackson.annotate.JsonIgnore;
-
-/**
- *
- * @author Javier A. Ortiz Bultron javier.ortiz.78@gmail.com
- */
-@Entity
-@Table(name = "requirement")
-@XmlRootElement
-@NamedQueries({
- @NamedQuery(name = "Requirement.findAll",
- query = "SELECT r FROM Requirement r")
- , @NamedQuery(name = "Requirement.findById",
- query = "SELECT r FROM Requirement r WHERE r.id = :id")
- , @NamedQuery(name = "Requirement.findByUniqueId",
- query = "SELECT r FROM Requirement r WHERE r.uniqueId = :uniqueId")})
-public class Requirement extends Versionable implements Serializable {
-
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue(strategy = GenerationType.TABLE,
- generator = "ReqGen")
- @TableGenerator(name = "ReqGen", table = "vm_id",
- pkColumnName = "table_name",
- valueColumnName = "last_id",
- pkColumnValue = "requirement",
- allocationSize = 1,
- initialValue = 1000)
- @NotNull
- @Column(name = "id")
- private Integer id;
- @Basic(optional = false)
- @NotNull
- @Size(min = 1, max = 255)
- @Column(name = "unique_id")
- @Auditable
- private String uniqueId;
- @Basic(optional = false)
- @NotNull
- @Lob
- @Size(max = 2147483647)
- @Column(name = "description")
- @Auditable
- private String description;
- @Lob
- @Size(max = 2147483647)
- @Column(name = "notes")
- @Auditable
- private String notes;
- @OneToMany(mappedBy = "parentRequirementId")
- private List requirementList;
- @JoinTable(name = "step_has_requirement", joinColumns = {
- @JoinColumn(name = "requirement_id", referencedColumnName = "id")},
- inverseJoinColumns = {
- @JoinColumn(name = "step_id", referencedColumnName = "id")
- , @JoinColumn(name = "step_test_case_id",
- referencedColumnName = "test_case_id")})
- @ManyToMany
- private List stepList;
- @JoinColumn(name = "parent_requirement_id", referencedColumnName = "id")
- @ManyToOne
- private Requirement parentRequirementId;
- @JoinColumns({
- @JoinColumn(name = "requirement_spec_node_id",
- referencedColumnName = "id")
- , @JoinColumn(name = "requirement_spec_node_requirement_spec_id",
- referencedColumnName = "requirement_spec_id")
- , @JoinColumn(name = "requirement_spec_node_requirement_spec_project_id",
- referencedColumnName = "requirement_spec_project_id")
- , @JoinColumn(name = "requirement_spec_node_requirement_spec_spec_level_id",
- referencedColumnName = "requirement_spec_spec_level_id")})
- @ManyToOne(optional = false)
- private RequirementSpecNode requirementSpecNode;
- @JoinColumn(name = "requirement_status_id", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private RequirementStatus requirementStatusId;
- @JoinColumn(name = "requirement_type_id", referencedColumnName = "id")
- @ManyToOne(optional = false)
- private RequirementType requirementTypeId;
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "requirement")
- private List riskControlHasRequirementList;
- @OneToMany(mappedBy = "requirementId")
- private List historyList;
-
- public Requirement() {
- super();
- }
-
- public Requirement(String uniqueId, String description) {
- this.uniqueId = uniqueId;
- this.description = description;
- }
-
- public Requirement(String uniqueId, String description, String notes) {
- this.uniqueId = uniqueId;
- this.description = description;
- this.notes = notes;
- setRiskControlHasRequirementList(new ArrayList<>());
- setRequirementList(new ArrayList<>());
- setStepList(new ArrayList<>());
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getUniqueId() {
- return uniqueId;
- }
-
- public void setUniqueId(String uniqueId) {
- this.uniqueId = uniqueId;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getNotes() {
- return notes;
- }
-
- public void setNotes(String notes) {
- this.notes = notes;
- }
-
- @XmlTransient
- @JsonIgnore
- public List