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