/***********************************************************************
* This file is part of iDempiere ERP Open Source *
* http://www.idempiere.org *
* *
* Copyright (C) Contributors *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - hengsin *
**********************************************************************/
package org.adempiere.base.annotation;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Annotation for Column Callout.
* This should only be used for class that implements the IColumnCallout interface.
* You can repeat the annotation multiple time for different table and column name combination.
* Note that you can't use * for both tableName and columnName attribute.
* @author hengsin
*
*/
@Retention(RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(Callouts.class)
public @interface Callout {
/**
*
* @return table names or * to match all tables
*/
String[] tableName();
/**
*
* @return column names or * to match all columns
*/
String[] columnName();
}