blob: 4aa8f70e37b472aa4c6d37fa39fef52ac6a5ef0b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010-2013 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* dclarke - EclipseLink 2.4 - MySports Demo Bug 344608
******************************************************************************/
package eclipselink.example.mysports.admin.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import org.eclipse.persistence.annotations.Cache;
import org.eclipse.persistence.annotations.CacheType;
/**
* @author dclarke
* @since EclipseLink 2.3.0
*/
@Entity
@Table(name = "MYS_ADMIN_STYLE")
@Cache(type=CacheType.FULL, size=10)
public class Style {
@Id
private String name;
@Lob
private String css;
public Style() {
}
public Style(String name, String css) {
this.name = name;
this.css = css;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCss() {
return css;
}
public void setCss(String css) {
this.css = css;
}
}