| /******************************************************************************* |
| * Copyright (c) 2010-2012 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.3 - MySports Demo Bug 344608 |
| ******************************************************************************/ |
| package eclipselink.example.mysports.admin.model; |
| |
| import javax.persistence.Embeddable; |
| |
| /** |
| * An extension represents an additional 'virtual' attribute that an entity in |
| * the MySports application can store. |
| * |
| * @author dclarke |
| * @since EclipseLink 2.3.0 |
| */ |
| @Embeddable |
| public class Extension { |
| |
| private String name = ""; |
| |
| private String javaType = "java.lang.String"; |
| |
| private String columnName; |
| |
| public Extension() { |
| } |
| |
| public Extension(String name, String javaType, String columnName) { |
| setName(name); |
| setJavaType(javaType); |
| setColumnName(columnName); |
| } |
| |
| public String getName() { |
| return name; |
| } |
| |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| public String getJavaType() { |
| return javaType; |
| } |
| |
| public void setJavaType(String javaType) { |
| this.javaType = javaType; |
| } |
| |
| public String getColumnName() { |
| return columnName; |
| } |
| |
| public void setColumnName(String columnName) { |
| this.columnName = columnName; |
| } |
| |
| } |