blob: a1ec8eefadac1d4d6c42349d0d06747835c79d7d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2010 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java;
import org.eclipse.jpt.jpa.core.context.java.JavaPersistentAttribute;
import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaAttributeMapping;
import org.eclipse.jpt.jpa.eclipselink.core.EclipseLinkMappingKeys;
import org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkVariableOneToOneMapping;
import org.eclipse.jpt.jpa.eclipselink.core.resource.java.EclipseLinkVariableOneToOneAnnotation;
public class JavaEclipseLinkVariableOneToOneMapping
extends AbstractJavaAttributeMapping<EclipseLinkVariableOneToOneAnnotation>
implements EclipseLinkVariableOneToOneMapping
{
public JavaEclipseLinkVariableOneToOneMapping(JavaPersistentAttribute parent) {
super(parent);
}
public String getKey() {
return EclipseLinkMappingKeys.VARIABLE_ONE_TO_ONE_ATTRIBUTE_MAPPING_KEY;
}
@Override
protected String getAnnotationName() {
return EclipseLinkVariableOneToOneAnnotation.ANNOTATION_NAME;
}
}