Hibernate Inheritance Mapping (Table Per Sub Class) | Hibernate Core Tutorial in Hindi | #6

Опубликовано: 06 Октябрь 2024
на канале: Programming Galaxy
570
3

As we have specified earlier, in case of table per subclass strategy, tables are created as per persistent classes but they are treated using primary and foreign key. So there will not be any duplicate column in the relation.

We need to specify @Inheritance(strategy=InheritanceType.JOINED) in the parent class and @PrimaryKeyJoinColumn annotation in the subclasses.
.............................................................................................................................
If you want its code, then give your email address in the comment box.


#hibernate
#programminggalaxy