Restructure for authorative models
[policy/models.git] / models-tosca / src / main / java / org / onap / policy / models / tosca / simple / concepts / JpaToscaTimeInterval.java
@@ -59,7 +59,7 @@ import org.onap.policy.models.base.PfValidationResult.ValidationResult;
 @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
 @Data
 @EqualsAndHashCode(callSuper = false)
-public class ToscaTimeInterval extends PfConcept {
+public class JpaToscaTimeInterval extends PfConcept {
     private static final long serialVersionUID = 9151467029611969980L;
 
     @EmbeddedId
@@ -72,27 +72,27 @@ public class ToscaTimeInterval extends PfConcept {
     private Date endTime;
 
     /**
-     * The Default Constructor creates a {@link ToscaTimeInterval} object with a null key.
+     * The Default Constructor creates a {@link JpaToscaTimeInterval} object with a null key.
      */
-    public ToscaTimeInterval() {
+    public JpaToscaTimeInterval() {
         this(new PfReferenceKey());
     }
 
     /**
-     * The Key Constructor creates a {@link ToscaTimeInterval} object with the given concept key.
+     * The Key Constructor creates a {@link JpaToscaTimeInterval} object with the given concept key.
      *
      * @param key the key
      */
-    public ToscaTimeInterval(@NonNull final PfReferenceKey key) {
+    public JpaToscaTimeInterval(@NonNull final PfReferenceKey key) {
         this(key, new Date(0), new Date(0));
     }
 
     /**
-     * The full constructor creates a {@link ToscaTimeInterval} object with all fields.
+     * The full constructor creates a {@link JpaToscaTimeInterval} object with all fields.
      *
      * @param key the key
      */
-    public ToscaTimeInterval(@NonNull final PfReferenceKey key, @NonNull final Date startTime,
+    public JpaToscaTimeInterval(@NonNull final PfReferenceKey key, @NonNull final Date startTime,
             @NonNull final Date endTime) {
         this.key = key;
         this.startTime = startTime;
@@ -104,7 +104,7 @@ public class ToscaTimeInterval extends PfConcept {
      *
      * @param copyConcept the concept to copy from
      */
-    public ToscaTimeInterval(final ToscaTimeInterval copyConcept) {
+    public JpaToscaTimeInterval(final JpaToscaTimeInterval copyConcept) {
         super(copyConcept);
     }
 
@@ -160,7 +160,7 @@ public class ToscaTimeInterval extends PfConcept {
             return this.hashCode() - otherConcept.hashCode();
         }
 
-        final ToscaTimeInterval other = (ToscaTimeInterval) otherConcept;
+        final JpaToscaTimeInterval other = (JpaToscaTimeInterval) otherConcept;
         if (!key.equals(other.key)) {
             return key.compareTo(other.key);
         }
@@ -176,9 +176,9 @@ public class ToscaTimeInterval extends PfConcept {
     @Override
     public PfConcept copyTo(@NonNull final PfConcept target) {
         final Object copyObject = target;
-        Assertions.instanceOf(copyObject, ToscaTimeInterval.class);
+        Assertions.instanceOf(copyObject, JpaToscaTimeInterval.class);
 
-        final ToscaTimeInterval copy = ((ToscaTimeInterval) copyObject);
+        final JpaToscaTimeInterval copy = ((JpaToscaTimeInterval) copyObject);
         copy.setKey(new PfReferenceKey(key));
         copy.setStartTime(startTime);
         copy.setEndTime(endTime);