Project

General

Profile

« Previous | Next » 

Revision da556b15

Added by Andreas Müller about 5 years ago

fix #7859

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/metadata/CdmPreference.java
18 18
import javax.persistence.Embeddable;
19 19
import javax.persistence.EmbeddedId;
20 20
import javax.persistence.Entity;
21
import javax.persistence.Lob;
21 22

  
22 23
import org.apache.commons.lang3.StringUtils;
23 24

  
......
43 44
 *  create a unique key.
44 45
 *
45 46
 *  Size of single fields may be enlarged in future versions. "Value" may
46
 *  become a CLOB.
47
 *  become a CLOB #7859.
47 48
 *
48 49
 * @author a.mueller
49 50
 * @since 03.07.2013
......
51 52
@Entity
52 53
public final class CdmPreference implements Serializable {
53 54

  
54
    private static final int VALUE_LENGTH = 1023;
55
    private static final int VALUE_LENGTH = 65536; //= CdmBase.CLOB_LENGTH;
55 56

  
56 57
    private static final long serialVersionUID = 4307599154287181582L;
57 58

  
......
116 117
	private PrefKey key;
117 118

  
118 119
	@Column(length=VALUE_LENGTH)
120
	@Lob
119 121
	private String value;
120 122

  
121 123
    //if false, the preference should not be overridden by local preferences,

Also available in: Unified diff