/******************************************************************************* * Copyright (c) 2009, 2011 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.context; import org.eclipse.jpt.jpa.db.Table; /** * Strategy describing how two entities are joined, either for a * {@link RelationshipMapping} or an {@link AssociationOverride}:
table
element.
*/
boolean tableNameIsInvalid(String tableName);
/**
* Return a message description used when the column's table is not valid
* in this context. This will be passed in as a parameter to a validation
* message. Here is an example where the description is what is returned
* by the implementation:
* location: * Table "table name" for map key column "column name" *
description: * does not match join table */ String getColumnTableNotValidDescription(); }