• SQL Tutorial
  • Java IO
  • PHP
  • jQuery
  • Core Java
  • RubyonRails
  • Struts
  • Spring
  • JSP

  • <

    Hibernate Inheritance Mapping


    Three types of inheritance Mapping

  • Table per class hierarchy

  • Table per sub-class hierarchy

  • Table per concrete class hierarchy


  • Example


    
    class Payment
    {
       // content will goes here
    }
    
    class CreditCard extends Payment
    {
       // content will goes here
    }
    
    class CreditCard extends Payment
    {
       // content will goes here
    }
    
















    © copyright 2017-2021 Completedone pvt ltd.