Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Hydrate support polymorphism?

hydrate polymorphism support
0
Posted

Does Hydrate support polymorphism?

0

A. Yes, Hydrate has tremendous flexibility in how to decide which concrete class of a class hierarchy to create when loading data. The simplest approach uses a discriminator column, but you can always kick down to discriminator code to decide which object will be built. Finally real-time specialization is in development where objects can be loaded as a (possibly abstract) base class and specialized into their ‘true’ concrete classes when more information is available. In the default generated database, Hydrate uses table-per-class polymorphism, though you can tweak this if required by customizing the schema and queries.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123