From d79eadbb3ce3a0986d62c19846838e6ac5b11687 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 10 Jun 2015 14:16:22 +0200 Subject: Drop Hibernate model ManualMeasure --- .../java/org/sonar/jpa/entity/ManualMeasure.java | 80 ---------------------- .../src/main/resources/META-INF/persistence.xml | 1 - 2 files changed, 81 deletions(-) delete mode 100644 sonar-core/src/main/java/org/sonar/jpa/entity/ManualMeasure.java (limited to 'sonar-core') 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 @@ org.hibernate.ejb.HibernatePersistence - org.sonar.jpa.entity.ManualMeasure org.sonar.api.database.model.User org.sonar.api.database.model.Snapshot org.sonar.api.database.model.MeasureModel -- cgit v1.2.3