public class

CollectionReturn

extends NonScalarReturn
java.lang.Object
   ↳ org.hibernate.loader.custom.NonScalarReturn
     ↳ org.hibernate.loader.custom.CollectionReturn

Class Overview

Represents a return which names a collection role; it is used in defining a custom query for loading an entity's collection in non-fetching scenarios (i.e., loading the collection itself as the "root" of the result).

Summary

Public Constructors
CollectionReturn(String alias, String ownerEntityName, String ownerProperty, CollectionAliases collectionAliases, EntityAliases elementEntityAliases, LockMode lockMode)
Public Methods
CollectionAliases getCollectionAliases()
EntityAliases getElementEntityAliases()
String getOwnerEntityName()
Returns the class owning the collection.
String getOwnerProperty()
Returns the name of the property representing the collection from the getOwnerEntityName().
[Expand]
Inherited Methods
From class org.hibernate.loader.custom.NonScalarReturn
From class java.lang.Object

Public Constructors

public CollectionReturn (String alias, String ownerEntityName, String ownerProperty, CollectionAliases collectionAliases, EntityAliases elementEntityAliases, LockMode lockMode)

Public Methods

public CollectionAliases getCollectionAliases ()

public EntityAliases getElementEntityAliases ()

public String getOwnerEntityName ()

Returns the class owning the collection.

Returns
  • The class owning the collection.

public String getOwnerProperty ()

Returns the name of the property representing the collection from the getOwnerEntityName().

Returns
  • The name of the property representing the collection on the owner class.