KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > Columns


1 //$Id: Columns.java,v 1.1 2005/05/16 17:43:07 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import static java.lang.annotation.ElementType.METHOD JavaDoc;
5 import static java.lang.annotation.ElementType.FIELD JavaDoc;
6 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
7 import java.lang.annotation.Target JavaDoc;
8 import java.lang.annotation.Retention JavaDoc;
9 import javax.persistence.Column;
10
11 /**
12  * Support an array of columns. Useful for component user types mappings
13  * @author Emmanuel Bernard
14  */

15 @Target JavaDoc({METHOD, FIELD}) @Retention JavaDoc(RUNTIME)
16 public @interface Columns {
17     Column[] columns();
18 }
19
Popular Tags