Class FetchProfile

java.lang.Object
org.hibernate.mapping.FetchProfile

public class FetchProfile extends Object
A mapping model object representing a FetchProfile.
See Also:
  • Constructor Details

    • FetchProfile

      public FetchProfile(String name, MetadataSource source)
      Create a fetch profile representation.
      Parameters:
      name - The name of the fetch profile.
      source - The source of the fetch profile (where was it defined).
  • Method Details

    • getName

      public String getName()
      Retrieve the name of the fetch profile.
      Returns:
      The profile name
    • getSource

      public MetadataSource getSource()
      Retrieve the fetch profile source.
      Returns:
      The profile source.
    • getFetches

      public LinkedHashSet<FetchProfile.Fetch> getFetches()
      Retrieve the fetches associated with this profile
      Returns:
      The fetches associated with this profile.
    • addFetch

      public void addFetch(FetchProfile.Fetch fetch)
      Adds a fetch to this profile.
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object