@Target(value=TYPE) @Retention(value=RUNTIME) public @interface SchemaHint
withSchemaValidationEnabled(true).
 Example:
 @Entity
 @SchemaHint(targetElement = @SchemaHint.TargetElement.TABLE)
 public class Product {
   // fields of the entity
 }
 
 By default, if you will create an @Entity without the @SchemaHint annotation, the following logic will be applied when doing validation:
If you want the mapper to generate code only to check the path for UDT or Table you can provide the @SchemaHint on the Entity:
targetElement = TABLE, then only the code path for checking CQL
       TABLE will be generated. If there is no corresponding CQL Table, then there is no check of
       UDT. The code throws an Exception denoting that CQL Table is missing for this Entity.
   targetElement = UDT, then only the code path for checking CQL
       UDT will be generated. If there is no corresponding CQL UDT type, the code throws an
       Exception denoting that CQL UDT is missing for this Entity.
 | Modifier and Type | Required Element and Description | 
|---|---|
| SchemaHint.TargetElement | targetElement | 
public abstract SchemaHint.TargetElement targetElement
Copyright © 2017–2020. All rights reserved.