Skip to content

Commit 94aa991

Browse files
committed
JAVA-2329: Fix mapper message to reference primary key instead of partition key
1 parent 7f02d20 commit 94aa991

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mapper-processor/src/main/java/com/datastax/oss/driver/internal/mapper/processor/dao/DaoDeleteMethodGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public Optional<MethodSpec> generate() {
101101
methodElement,
102102
processedType,
103103
"Wrong number of parameters: %s methods with no custom clause "
104-
+ "must take either an entity instance, or the partition key components",
104+
+ "must take either an entity instance, or the primary key components",
105105
Delete.class.getSimpleName());
106106
return Optional.empty();
107107
}

mapper-processor/src/test/java/com/datastax/oss/driver/internal/mapper/processor/dao/DaoDeleteMethodGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static Object[][] invalidSignatures() {
5757
},
5858
{
5959
"Wrong number of parameters: Delete methods with no custom clause "
60-
+ "must take either an entity instance, or the partition key components",
60+
+ "must take either an entity instance, or the primary key components",
6161
MethodSpec.methodBuilder("delete")
6262
.addAnnotation(Delete.class)
6363
.addModifiers(Modifier.PUBLIC, Modifier.ABSTRACT)

0 commit comments

Comments
 (0)