Uploaded image for project: 'Hibernate ORM'
  1. HHH-12373

Better document AuditReader#getEntityName() as throwing an exception rather than it returning null.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 5.2.17, 5.3.0.CR2
    • Components: hibernate-envers
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      The AuditReader#getEntityName() java-doc clearly states that the method returns null if the entity-name cannot be determined; however in practice it throws a HibernateException.

      Update the java-doc to clarify the excepted outcomes.

      Originated from this discussion: https://stackoverflow.com/questions/49168452/hibernate-envers-how-to-get-entity-name

        Attachments

          Activity

            People

            • Assignee:
              crancran Chris Cranford
              Reporter:
              crancran Chris Cranford
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: