2 Copyright 2010 Sun Microsystems, Inc.
3 All rights reserved. Use is subject to license terms.
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.
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.
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
19 package com.mysql.clusterj.jpatest.model;
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;
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)
36 ) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
41 @Table(name="charsetlatin1")
42 public class ClobTypes implements IdBase {
48 @Column(name="smallcolumn")
49 private String small200;
52 @Column(name="mediumcolumn")
53 private String medium500;
56 @Column(name="largecolumn")
57 private String large10000;
63 public void setId(int id) {
67 public String getSmall200() {
71 public void setSmall200(String small200) {
72 this.small200 = small200;
75 public String getMedium500() {
79 public void setMedium500(String medium500) {
80 this.medium500 = medium500;
83 public String getLarge10000() {
87 public void setLarge10000(String large10000) {
88 this.large10000 = large10000;