blob: bd871e35c237a7ffeb61fc4c9e784b47e1af45ab [file] [log] [blame]
/*************************************************************************************
* Copyright (c) 2012 Red Hat, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Fred Bricon (Red Hat, Inc.) - initial API and implementation
************************************************************************************/
package org.eclipse.m2e.wtp.jpa;
import org.eclipse.jpt.jpa.core.resource.persistence.XmlPersistenceUnit;
/**
* Identifies a JPA platform id (as defined in {@link JpaPlatformDescription}) from a given {@link XmlPersistenceUnit}
*
* @author Fred Bricon
*
* @see JpaPlatformDescription
* @see XmlPersistenceUnit
*/
public interface IPlatformIdentifier {
/**
* Returns a {@link JpaPlatformDescription} id inferred from a given {@link XmlPersistenceUnit}
*/
String getPlatformId(XmlPersistenceUnit persistenceUnit);
}