]> source.dussan.org Git - sonarqube.git/commitdiff
Drop Hibernate model ManualMeasure
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 10 Jun 2015 12:16:22 +0000 (14:16 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 10 Jun 2015 12:16:22 +0000 (14:16 +0200)
sonar-core/src/main/java/org/sonar/jpa/entity/ManualMeasure.java [deleted file]
sonar-core/src/main/resources/META-INF/persistence.xml

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 (file)
index aa907c1..0000000
+++ /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();
-  }
-}
index 06f3a3131f5d7c48494a9f44b45b5eff15be7c78..1fef6ef60523e7d3841993012d462f0b0be417e4 100644 (file)
@@ -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>