01: package org.compass.annotations.test.dynamic.jexl;
02:
03: import java.util.Date;
04:
05: import org.compass.annotations.Searchable;
06: import org.compass.annotations.SearchableDynamicMetaData;
07: import org.compass.annotations.SearchableDynamicMetaDatas;
08: import org.compass.annotations.SearchableId;
09:
10: /**
11: * @author kimchy
12: */
13: @Searchable
14: @SearchableDynamicMetaData(name="test",expression="data.value + data.value2",converter="jexl")
15: @SearchableDynamicMetaDatas({@SearchableDynamicMetaData(name="date",expression="data.date",converter="jexl",format="yyyy",type=Date.class),@SearchableDynamicMetaData(name="test2",expression="data.value",converter="jexl")})
16: public class A {
17:
18: @SearchableId
19: private Integer id;
20:
21: private String value;
22:
23: private String value2;
24:
25: private Date date;
26:
27: public Integer getId() {
28: return id;
29: }
30:
31: public void setId(Integer id) {
32: this .id = id;
33: }
34:
35: public String getValue() {
36: return value;
37: }
38:
39: public void setValue(String value) {
40: this .value = value;
41: }
42:
43: public String getValue2() {
44: return value2;
45: }
46:
47: public void setValue2(String value2) {
48: this .value2 = value2;
49: }
50:
51: public Date getDate() {
52: return date;
53: }
54:
55: public void setDate(Date date) {
56: this.date = date;
57: }
58: }
|