kmoore | c9c9e2b | 2011-02-06 02:07:28 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2007, 2010 Oracle. All rights reserved. |
| 3 | * This program and the accompanying materials are made available under the |
| 4 | * terms of the Eclipse Public License v1.0, which accompanies this distribution |
| 5 | * and is available at http://www.eclipse.org/legal/epl-v10.html. |
| 6 | * |
| 7 | * Contributors: |
| 8 | * Oracle - initial API and implementation |
| 9 | ******************************************************************************/ |
| 10 | package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; |
| 11 | |
| 12 | import org.eclipse.jpt.jpa.core.MappingKeys; |
| 13 | import org.eclipse.jpt.jpa.core.context.java.JavaPersistentAttribute; |
| 14 | import org.eclipse.jpt.jpa.core.context.java.JavaTransientMapping; |
| 15 | import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaAttributeMapping; |
| 16 | import org.eclipse.jpt.jpa.core.jpa2.context.MetamodelField; |
| 17 | import org.eclipse.jpt.jpa.core.resource.java.TransientAnnotation; |
| 18 | |
| 19 | /** |
| 20 | * Java transient mapping |
| 21 | */ |
| 22 | public class GenericJavaTransientMapping |
| 23 | extends AbstractJavaAttributeMapping<TransientAnnotation> |
| 24 | implements JavaTransientMapping |
| 25 | { |
| 26 | public GenericJavaTransientMapping(JavaPersistentAttribute parent) { |
| 27 | super(parent); |
| 28 | } |
| 29 | |
| 30 | public String getKey() { |
| 31 | return MappingKeys.TRANSIENT_ATTRIBUTE_MAPPING_KEY; |
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | protected String getAnnotationName() { |
| 36 | return TransientAnnotation.ANNOTATION_NAME; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | // ********** metamodel ********** |
| 41 | |
| 42 | @Override |
| 43 | public MetamodelField getMetamodelField() { |
| 44 | return null; |
| 45 | } |
| 46 | } |