* @param jdbcApplication used to retrieve the entities of this relation
* @param relationMetaData relation meta data loaded from the ejb-jar.xml
* file
*/
public JDBCRelationMetaData(final JDBCApplicationMetaData jdbcApplication, final RelationMetaData relationMetaData) {
final RelationRoleMetaData leftRole = relationMetaData.getLeftRole();
final RelationRoleMetaData rightRole = relationMetaData.getRightRole();
// set the default mapping style
if (leftRole.isMultiplicityMany() && rightRole.isMultiplicityMany()) {
mappingStyle = MappingStyle.TABLE;
} else {
mappingStyle = MappingStyle.FOREIGN_KEY;
}