@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
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;
*
* @param copyConcept the concept to copy from
*/
- public ToscaTimeInterval(final ToscaTimeInterval copyConcept) {
+ public JpaToscaTimeInterval(final JpaToscaTimeInterval copyConcept) {
super(copyConcept);
}
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);
}
@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);