]> review.fuel-infra Code Review - packages/trusty/mysql-wsrep-5.6.git/blob
c20715033e4a54c5779a5ffa33f88b73e0c9ebcb
[packages/trusty/mysql-wsrep-5.6.git] /
1 /*
2    Copyright 2010 Sun Microsystems, Inc.
3    All rights reserved. Use is subject to license terms.
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; version 2 of the License.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
17 */
18
19 package com.mysql.clusterj.jpatest.model;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24 import javax.persistence.Lob;
25 import javax.persistence.Table;
26
27 /** Schema
28  *
29 drop table if exists charsetlatin1;
30 create table charsetlatin1 (
31  id int not null primary key,
32  smallcolumn varchar(200),
33  mediumcolumn varchar(500),
34  largecolumn text(10000)
35
36 ) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
37  
38 /** Blob types.
39  */
40 @Entity
41 @Table(name="charsetlatin1")
42 public class ClobTypes implements IdBase {
43
44     @Id
45     private int id;
46
47     @Lob
48     @Column(name="smallcolumn")
49     private String small200;
50
51     @Lob
52     @Column(name="mediumcolumn")
53     private String medium500;
54
55     @Lob
56     @Column(name="largecolumn")
57     private String large10000;
58
59     public int getId() {
60         return id;
61     }
62
63     public void setId(int id) {
64         this.id = id;
65     }
66
67     public String getSmall200() {
68         return small200;
69     }
70
71     public void setSmall200(String small200) {
72         this.small200 = small200;
73     }
74
75     public String getMedium500() {
76         return medium500;
77     }
78
79     public void setMedium500(String medium500) {
80         this.medium500 = medium500;
81     }
82
83     public String getLarge10000() {
84         return large10000;
85     }
86
87     public void setLarge10000(String large10000) {
88         this.large10000 = large10000;
89     }
90
91 }