DATACASS-98 - Completed

Exit immediately if no @Id found so that we dont get to the validation
which assumes an @Id exists.
This commit is contained in:
David Webb
2014-02-17 21:00:02 -05:00
parent 43b41764f5
commit e9c1ddb26c

View File

@@ -206,6 +206,7 @@ public class DefaultCassandraPersistentEntityMetadataVerifier implements Cassand
if (idPropertyCount != 1) {
exceptions.add(new MappingException(String.format(
"@Table/@Persistent types must have only one @PrimaryKey attribute. Found %s.", idPropertyCount)));
throw exceptions;
}
/*