blob: 1fb3e08be3376055b9813439f1ab76fe1fb20ea0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 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.core.tests.extension.resource;
import org.eclipse.jpt.jpa.core.context.java.JavaBasicMapping;
import org.eclipse.jpt.jpa.core.context.java.JavaEntity;
import org.eclipse.jpt.jpa.core.context.java.JavaPersistentAttribute;
import org.eclipse.jpt.jpa.core.context.java.JavaPersistentType;
import org.eclipse.jpt.jpa.core.internal.AbstractJpaFactory;
import org.eclipse.jpt.jpa.core.resource.java.EntityAnnotation;
public class TestJpaFactory
extends AbstractJpaFactory
{
@Override
public JavaEntity buildJavaEntity(JavaPersistentType parent, EntityAnnotation entityAnnotation) {
return new TestJavaEntity(parent, entityAnnotation);
}
@Override
public JavaBasicMapping buildJavaBasicMapping(JavaPersistentAttribute parent) {
return new TestJavaBasicMapping(parent);
}
public JavaTestTypeMapping buildJavaTestTypeMapping(JavaPersistentType parent) {
return new JavaTestTypeMapping(parent);
}
public JavaTestAttributeMapping buildJavaTestAttributeMapping(JavaPersistentAttribute parent) {
return new JavaTestAttributeMapping(parent);
}
}