001package com.avaje.ebean.annotation;
002
003import java.lang.annotation.ElementType;
004import java.lang.annotation.Retention;
005import java.lang.annotation.RetentionPolicy;
006import java.lang.annotation.Target;
007
008/**
009 * Specify explicit sql for multiple select statements. Need to use this if you
010 * have more than one SqlSelect for a given bean.
011 * <p>
012 * FUTURE: Support explicit sql for SqlInsert, SqlUpdate and SqlDelete.
013 * </p>
014 */
015@Target({ ElementType.TYPE })
016@Retention(RetentionPolicy.RUNTIME)
017public @interface Sql {
018
019  /**
020   * The sql select statements.
021   */
022  SqlSelect[] select() default { @SqlSelect };
023
024}