blob: 37e46c1c56e95f6130dc2b0f0c6634a15f2a720e [file] [log] [blame]
kmoorec9c9e2b2011-02-06 02:07:28 +00001/*******************************************************************************
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 ******************************************************************************/
10package org.eclipse.jpt.jpa.core.internal.jpa1.context.java;
11
12import org.eclipse.jpt.jpa.core.MappingKeys;
13import org.eclipse.jpt.jpa.core.context.java.JavaPersistentAttribute;
14import org.eclipse.jpt.jpa.core.context.java.JavaTransientMapping;
15import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaAttributeMapping;
16import org.eclipse.jpt.jpa.core.jpa2.context.MetamodelField;
17import org.eclipse.jpt.jpa.core.resource.java.TransientAnnotation;
18
19/**
20 * Java transient mapping
21 */
22public 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}