View Javadoc

1   package net.sf.cantina.datasource;
2   
3   import java.util.Locale;
4   
5   /***
6    * @hibernate.class table="translations"
7    */
8   
9   public class Translation
10  {
11    private byte[] content;
12    private String id;
13    private Locale locale;
14  
15    public Translation()
16    {
17    }
18  
19    public Translation(Locale locale)
20    {
21      this.locale = locale;
22    }
23  
24    /***
25     * @hibernate.property
26     *  column="content"
27     *  length="10000000"
28     *  type="binary"
29     */
30  
31    public byte[] getContent()
32    {
33      return content;
34    }
35  
36    public void setContent(byte[] content)
37    {
38      this.content = content;
39    }
40  
41    /***
42     * @hibernate.id generator-class="uuid.hex"
43     * column="id"
44     * unsaved-value="null"
45     */
46  
47    public String getId()
48    {
49      return id;
50    }
51  
52    public void setId(String id)
53    {
54      this.id = id;
55    }
56  
57    /***
58     * @hibernate.property column="locale"
59     */
60    public Locale getLocale()
61    {
62      return locale;
63    }
64  
65    public void setLocale(Locale locale)
66    {
67      this.locale = locale;
68    }
69  }