Class JaxbHbmNativeQueryReturnType

  • All Implemented Interfaces:
    Serializable, NativeQueryNonScalarRootReturn

    public class JaxbHbmNativeQueryReturnType
    extends Object
    implements Serializable, NativeQueryNonScalarRootReturn
    Defines a return component for a sql-query. Alias refers to the alias used in the actual sql query; lock-mode specifies the locking to be applied when the query is executed. The class, collection, and role attributes are mutually exclusive; class refers to the class name of a "root entity" in the object result; collection refers to a collection of a given class and is used to define custom sql to load that owned collection and takes the form "ClassName.propertyName"; role refers to the property path for an eager fetch and takes the form "owningAlias.propertyName"

    Java class for NativeQueryReturnType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="NativeQueryReturnType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="return-discriminator" minOccurs="0">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <attribute name="column" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="return-property" type="{http://www.hibernate.org/xsd/orm/hbm}NativeQueryPropertyReturnType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <attribute name="alias" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="class" type="{http://www.hibernate.org/xsd/orm/hbm}ClassNameType" />
           <attribute name="entity-name" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="lock-mode" type="{http://www.hibernate.org/xsd/orm/hbm}LockModeEnum" default="read" />
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form