接口 ForeignKeyContributingSource

    • 方法详细资料

      • getExplicitForeignKeyName

        String getExplicitForeignKeyName()
        Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.
        返回:
        The user supplied foreign key name.
      • createForeignKeyConstraint

        boolean createForeignKeyConstraint()
        Primarily exists to support JPA's @ForeignKey(NO_CONSTRAINT).
        返回:
        true if the FK constraint should be created, false if not.
      • isCascadeDeleteEnabled

        boolean isCascadeDeleteEnabled()
        Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?
        返回:
        true, if the cascade delete is enabled; false, otherwise.