tech.ydb.yoj.databind.schema.Table Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoj-databind Show documentation
Show all versions of yoj-databind Show documentation
Core data-binding logic used by YOJ (YDB ORM for Java) to convert
between Java objects and database rows (or anything representable by
a Java Map, really).
package tech.ydb.yoj.databind.schema;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Specifies the table for the annotated entity.
*
* If no {@code Table} annotation is specified, the default values apply.
*
* * Example:
*
* @Table(name="CUSTOMERS")
* public class Customer { ... }
*
*
*/
@Target(TYPE)
@Retention(RUNTIME)
public @interface Table {
/**
* The name of the table. Defaults to the type name.
*/
String name();
}