Class DatabaseGeneratedType


  • public class DatabaseGeneratedType
    extends Object
    Indicates that the database automatically populates a primary key ID in the listed column(s). Typically this is used for columns with an AUTO_INCREMENT flag or the equivalent. This only makes sense if this key generator is used for an EJB or something else with a corresponding database table (not if it's meant to generate unique web session IDs or something like that -- see auto-increment-tableType for that case).

    Java class for database-generatedType complex type.

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

     <complexType name="database-generatedType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="identity-column" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • identityColumn

        protected List<String> identityColumn
    • Constructor Detail

      • DatabaseGeneratedType

        public DatabaseGeneratedType()
    • Method Detail

      • getIdentityColumn

        public List<String> getIdentityColumn()
        Gets the value of the identityColumn property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the identityColumn property. For example, to add a new item, do as follows:
            getIdentityColumn().add(newItem);
         
        Objects of the following type(s) are allowed in the list String