Hibernate 3 – Inheritance Strategies
June 22, 2011 1 Comment
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
Recent Comments