Example usage for org.hibernate.type AssociationType getForeignKeyDirection

List of usage examples for org.hibernate.type AssociationType getForeignKeyDirection

Introduction

In this page you can find the example usage for org.hibernate.type AssociationType getForeignKeyDirection.

Prototype

public ForeignKeyDirection getForeignKeyDirection();

Source Link

Document

Get the foreign key directionality of this association

Usage

From source file:com.miranteinfo.seam.hibernate.HibernateCascade.java

License:Open Source License

private boolean cascadeAssociationNow(AssociationType associationType) {
    return associationType.getForeignKeyDirection().cascadeNow(cascadeTo)
            && (eventSource.getEntityMode() != EntityMode.DOM4J || associationType.isEmbeddedInXML());
}