@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@EqualsAndHashCode(callSuper = false)
@ToString
-public final class ToscaConstraintLogicalKey extends ToscaConstraintLogical {
+public final class JpaToscaConstraintLogicalKey extends JpaToscaConstraintLogical {
private static final long serialVersionUID = -2420828090326264341L;
@Column
private final PfKey compareToKey;
/**
- * The Default Constructor creates a {@link ToscaConstraintLogicalKey} object with a null key.
+ * The Default Constructor creates a {@link JpaToscaConstraintLogicalKey} object with a null key.
*/
- public ToscaConstraintLogicalKey() {
+ public JpaToscaConstraintLogicalKey() {
this(new PfReferenceKey());
}
/**
- * The Key Constructor creates a {@link ToscaConstraintLogicalKey} object with the given concept
+ * The Key Constructor creates a {@link JpaToscaConstraintLogicalKey} object with the given concept
* key.
*
* @param key the key of the constraint
*/
- public ToscaConstraintLogicalKey(final PfReferenceKey key) {
+ public JpaToscaConstraintLogicalKey(final PfReferenceKey key) {
this(key, Operation.EQ, PfConceptKey.getNullKey());
}
/**
- * The Key Constructor creates a {@link ToscaConstraintLogicalKey} object with the given concept
+ * The Key Constructor creates a {@link JpaToscaConstraintLogicalKey} object with the given concept
* key, operation, and compare key.
*
* @param key the key of the constraint
* @param compareToKey the key of the object to which the object that owns this constraint will
* be compared
*/
- public ToscaConstraintLogicalKey(final PfReferenceKey key, @NonNull final Operation operation,
+ public JpaToscaConstraintLogicalKey(final PfReferenceKey key, @NonNull final Operation operation,
@NonNull final PfKey compareToKey) {
super(key, operation);
this.compareToKey = compareToKey;
*
* @param copyConcept the concept to copy from
*/
- public ToscaConstraintLogicalKey(@NonNull final ToscaConstraintLogical copyConcept) {
+ public JpaToscaConstraintLogicalKey(@NonNull final JpaToscaConstraintLogical copyConcept) {
throw new PfModelRuntimeException(Response.Status.INTERNAL_SERVER_ERROR, "cannot copy an immutable constraint");
}
return this.hashCode() - otherConcept.hashCode();
}
- final ToscaConstraintLogicalKey other = (ToscaConstraintLogicalKey) otherConcept;
+ final JpaToscaConstraintLogicalKey other = (JpaToscaConstraintLogicalKey) otherConcept;
int result = super.compareTo(other);
if (result != 0) {