diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-10 14:16:22 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-10 14:16:22 +0200 |
commit | d79eadbb3ce3a0986d62c19846838e6ac5b11687 (patch) | |
tree | 0ebdcaf0e1d1117f07d712e497fa6ff2fcf9dfde /sonar-core | |
parent | fb4a58afd8f1857ce4fd115c2ee31f653f7897d1 (diff) | |
download | sonarqube-d79eadbb3ce3a0986d62c19846838e6ac5b11687.tar.gz sonarqube-d79eadbb3ce3a0986d62c19846838e6ac5b11687.zip |
Drop Hibernate model ManualMeasure
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/jpa/entity/ManualMeasure.java | 80 | ||||
-rw-r--r-- | sonar-core/src/main/resources/META-INF/persistence.xml | 1 |
2 files changed, 0 insertions, 81 deletions
diff --git a/sonar-core/src/main/java/org/sonar/jpa/entity/ManualMeasure.java b/sonar-core/src/main/java/org/sonar/jpa/entity/ManualMeasure.java deleted file mode 100644 index aa907c1766c..00000000000 --- a/sonar-core/src/main/java/org/sonar/jpa/entity/ManualMeasure.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonar.jpa.entity; - -import org.apache.commons.lang.builder.ReflectionToStringBuilder; -import org.apache.commons.lang.builder.ToStringStyle; - -import javax.persistence.*; - -@Entity -@Table(name = "manual_measures") -public final class ManualMeasure { - private static final int MAX_TEXT_SIZE = 4000; - - @Id - @Column(name = "id") - @GeneratedValue - private Long id; - - @Column(name = "value", updatable = true, nullable = true, precision = 30, scale = 20) - private Double value = null; - - @Column(name = "text_value", updatable = true, nullable = true, length = MAX_TEXT_SIZE) - private String textValue; - - @Column(name = "metric_id", updatable = false, nullable = false) - private Integer metricId; - - @Column(name = "resource_id", updatable = true, nullable = true) - private Integer resourceId; - - @Column(name = "description", updatable = true, nullable = true, length = MAX_TEXT_SIZE) - private String description; - - public Long getId() { - return id; - } - - public Double getValue() { - return value; - } - - public String getTextValue() { - return textValue; - } - - public String getDescription() { - return description; - } - - public Integer getMetricId() { - return metricId; - } - - public Integer getResourceId() { - return resourceId; - } - - @Override - public String toString() { - return new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).toString(); - } -} diff --git a/sonar-core/src/main/resources/META-INF/persistence.xml b/sonar-core/src/main/resources/META-INF/persistence.xml index 06f3a3131f5..1fef6ef6052 100644 --- a/sonar-core/src/main/resources/META-INF/persistence.xml +++ b/sonar-core/src/main/resources/META-INF/persistence.xml @@ -6,7 +6,6 @@ <persistence-unit name="sonar" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.ejb.HibernatePersistence</provider> - <class>org.sonar.jpa.entity.ManualMeasure</class> <class>org.sonar.api.database.model.User</class> <class>org.sonar.api.database.model.Snapshot</class> <class>org.sonar.api.database.model.MeasureModel</class> |