
com.bettercloud.bigtable.orm.annotations.Entity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bigtable-orm-annotations Show documentation
Show all versions of bigtable-orm-annotations Show documentation
Configurable Java Entity Generation for Google BigTable
The newest version!
package com.bettercloud.bigtable.orm.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface Entity {
/**
* @return The delimiter used to join the {@link #keyComponents()} for all entites of the annotated type.
*/
String keyDelimiter() default "::";
/**
* An array of {@link KeyComponent}s that will be used to generate a KeyBuilder that always generates a suitable key
* for this entity.
*
* At least one {@link KeyComponent} must be defined.
*
* It is up to the programmer to define key formats that will not collide with one another. This annotation is
* constructed for easy readability for code reviews.
*
* @return An array of key components
*/
KeyComponent[] keyComponents();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy