@Target(value=TYPE) @Retention(value=RUNTIME) public @interface TransientProperties
Entity
to indicate which properties should be considered 'transient',
meaning that they should not be mapped to any column (neither during reads nor writes).
Example:
@TransientProperties({"notAColumn", "x"}) @Entity public class Product { @PartitionKey private UUID id; private String description; // these columns are not included because their names are specified in @TransientProperties private int notAColumn; private int x; ... }
This annotation is an alternative to using the Transient
annotation on a field or
getter. It is useful in cases where this annotation may be specified on a parent class where
implementing classes will share a common configuration without needing to explicitly annotate
each property with a Transient
annotation.
public abstract String[] value
Copyright © 2017–2021. All rights reserved.