From fcc96f69fa156f95dcc8f09143684626f4859653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacobo=20Aragunde=20P=C3=A9rez?= Date: Wed, 10 Mar 2010 12:39:40 +0100 Subject: [PATCH] ItEr50S13AdaptacionServiciosRESTItEr49S18: Added new attributes to the Configuration entity. --- .../common/entities/Configuration.java | 40 +++++++++++++++++++ .../common/entities/Configuration.hbm.xml | 5 +++ 2 files changed, 45 insertions(+) diff --git a/navalplanner-business/src/main/java/org/navalplanner/business/common/entities/Configuration.java b/navalplanner-business/src/main/java/org/navalplanner/business/common/entities/Configuration.java index e79b9cc82..a491f866e 100644 --- a/navalplanner-business/src/main/java/org/navalplanner/business/common/entities/Configuration.java +++ b/navalplanner-business/src/main/java/org/navalplanner/business/common/entities/Configuration.java @@ -41,6 +41,14 @@ public class Configuration extends BaseEntity { private String companyCode; + private Boolean generateCodeForCriterion; + + private Boolean generateCodeForLabel; + + private Boolean generateCodeForWorkReport; + + private Boolean generateCodeForResources; + public void setDefaultCalendar(BaseCalendar defaultCalendar) { this.defaultCalendar = defaultCalendar; } @@ -71,4 +79,36 @@ public class Configuration extends BaseEntity { return !companyCode.contains(" "); } + public void setGenerateCodeForCriterion(Boolean generateCodeForCriterion) { + this.generateCodeForCriterion = generateCodeForCriterion; + } + + public Boolean getGenerateCodeForCriterion() { + return generateCodeForCriterion; + } + + public void setGenerateCodeForLabel(Boolean generateCodeForLabel) { + this.generateCodeForLabel = generateCodeForLabel; + } + + public Boolean getGenerateCodeForLabel() { + return generateCodeForLabel; + } + + public void setGenerateCodeForWorkReport(Boolean generateCodeForWorkReport) { + this.generateCodeForWorkReport = generateCodeForWorkReport; + } + + public Boolean getGenerateCodeForWorkReport() { + return generateCodeForWorkReport; + } + + public void setGenerateCodeForResources(Boolean generateCodeForResources) { + this.generateCodeForResources = generateCodeForResources; + } + + public Boolean getGenerateCodeForResources() { + return generateCodeForResources; + } + } \ No newline at end of file diff --git a/navalplanner-business/src/main/resources/org/navalplanner/business/common/entities/Configuration.hbm.xml b/navalplanner-business/src/main/resources/org/navalplanner/business/common/entities/Configuration.hbm.xml index 2dca0b125..d3898cd0b 100644 --- a/navalplanner-business/src/main/resources/org/navalplanner/business/common/entities/Configuration.hbm.xml +++ b/navalplanner-business/src/main/resources/org/navalplanner/business/common/entities/Configuration.hbm.xml @@ -17,6 +17,11 @@ + + + + + \ No newline at end of file