Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: $ |
2 | package org.hibernate.annotations; |
||
3 | |||
4 | import java.lang.annotation.*; |
||
5 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
6 | import static java.lang.annotation.ElementType.TYPE; |
||
7 | import static java.lang.annotation.ElementType.FIELD; |
||
8 | import static java.lang.annotation.ElementType.METHOD; |
||
9 | |||
10 | /** |
||
11 | * Define a tuplizer for an entity or a component |
||
12 | * @author Emmanuel Bernard |
||
13 | */ |
||
14 | @java.lang.annotation.Target( {TYPE, FIELD, METHOD} ) |
||
15 | @Retention( RUNTIME ) |
||
16 | public @interface Tuplizer { |
||
17 | /** tuplizer implementation */ |
||
18 | Class impl(); |
||
19 | /** either pojo, dynamic-map or dom4jś */ |
||
20 | String entityMode() default "pojo"; |
||
21 | } |