KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > entity > package-info


1 /**
2  * Test package for metatata facilities
3  * It contains an example of filter metadata
4  */

5 @FilterDefs(
6     {
7     @FilterDef(
8         name="betweenLength",
9         parameters = {
10             @ParamDef(name="minLength", type="integer"),
11             @ParamDef(name="maxLength", type="integer")
12         }
13     )
14     }
15 )
16 @TypeDefs(
17     {
18     @TypeDef(
19         name="caster",
20         typeClass = CasterStringType.class,
21         parameters = {
22             @Parameter(name="cast", value="lower")
23         }
24     )
25     }
26 )
27 package org.hibernate.test.annotations.entity;
28
29 import org.hibernate.annotations.FilterDef;
30 import org.hibernate.annotations.FilterDefs;
31 import org.hibernate.annotations.ParamDef;
32 import org.hibernate.annotations.Parameter;
33 import org.hibernate.annotations.TypeDef;
34 import org.hibernate.annotations.TypeDefs;
35
Popular Tags