Extending relation for existing entity
Posted: Mon Mar 31, 2014 8:43 pm
Hi,
I would like to extend the default Sku to have one more one-to-many relation. For example Sku to Locale relation.
One Sku many have many locales. I know I can extend the SkuImpl class from the doc, however the extending either requires a new table or a discriminator column for join and single table inheritance. My case is not to add any table or column. It is just to add one more foreign key and add a collection property to Sku entity.
Is there any way rather than to entirely replace the existing Sku class?
Thanks,
I would like to extend the default Sku to have one more one-to-many relation. For example Sku to Locale relation.
One Sku many have many locales. I know I can extend the SkuImpl class from the doc, however the extending either requires a new table or a discriminator column for join and single table inheritance. My case is not to add any table or column. It is just to add one more foreign key and add a collection property to Sku entity.
Is there any way rather than to entirely replace the existing Sku class?
Thanks,