001 /**
002 * Copyright 2010 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 */
015
016 package org.kuali.student.core.entity;
017
018 import javax.persistence.Column;
019 import javax.persistence.Inheritance;
020 import javax.persistence.InheritanceType;
021 import javax.persistence.MappedSuperclass;
022
023 @MappedSuperclass
024 @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
025 public class RichText extends BaseEntity{
026
027 @Column(name = "PLAIN",length=KSEntityConstants.LONG_TEXT_LENGTH)
028 private String plain;
029
030 @Column(name = "FORMATTED",length=KSEntityConstants.LONG_TEXT_LENGTH)
031 private String formatted;
032
033 public String getPlain() {
034 return plain;
035 }
036
037 public void setPlain(String plain) {
038 this.plain = plain;
039 }
040
041 public String getFormatted() {
042 return formatted;
043 }
044
045 public void setFormatted(String formatted) {
046 this.formatted = formatted;
047 }
048 }