Hibernate 3 – Inheritance Strategies

Abstract : The objectives for the Hibernate 3 Inheritance Strategies basically are : . Understanding the different strategies . Given a strategy detect if a given DB schema can be used . Understand how to map polymorphic associations

Table per concrete class

  • how to map a polymorphic association
  • the SQL generated if a polymorphic query is issued

Table per concrete class with UNION

  • your ability to detect if a given DB schema can be mapped using this strategy
  • mapping element to use : <union-subclass> and their allowed content
  • id strategy constraints
  • how to map a polymorphic association
  • what is the SQL generated if a polymorphic query is issued

Table per subclass with discriminator strategy

  • your ability to detect if a given DB schema can be mapped using this strategy
  • mapping elements to use : <discriminator/> <subclass/> <join/> <key/> and their allowed content
  • how to map a polymorphic association
  • what is the SQL generated if a polymorphic query is issued

Table per subclass strategy

  • your ability to detect if a given DB schema can be mapped using this strategy
  • mapping elements to use : <joined-subclass/> <key/> and their allowed content
  • how to map a polymorphic association
  • what is the SQL generated if a polymorphic query is issued

Table per class hierarchy strategy

  • your ability to detect if a given DB schema can be mapped using this strategy
  • mapping elements to use : <subclass/> <key/> and their allowed content
  • how to map a polymorphic association
  • what is the SQL generated if a polymorphic query is issued

For more visit : How Inheritance Work in Hibernate

Advertisements

About Sanju
I am Software Programmer. I am working in JAVA/J2EE Technologies.

One Response to Hibernate 3 – Inheritance Strategies

  1. Heath Miller cheap jersey says:

    Ultimately, the author made an update for his blog. Im waiting anxiously for your forthcoming update. Let’s we imagine you will consider updating with greater regularity options . readers could follow along. I shouldnt cash joy to have at this moment and your blog is a. I recognize our life is busy but lets i do hope you can certainly make the energy to help keep updated on any progress.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: