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.

Can persistent and non-persistent classes be mixed in the hierarchy?

0
Posted

Can persistent and non-persistent classes be mixed in the hierarchy?

0

Submissions may assume that if the top-most class is marked as persistent then all its subclasses are marked as non-persistent. Similarly, if a class is marked as non-persistent, then all its subclasses are marked as non-persistent recursively. The motivation for this is that each class that’s marked as being persistent should be transformed to a separate database table. Since sub-classes don’t get transformed to separate tables, marking them as persistent would be slightly misleading.

Related Questions

What is your question?

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

Experts123