famousactress wrote:
For instance, if your class will always be a 'C'.. then maybe you should give A a relationship to C instead?
With the simplified scenario I presented that would be a good idea. In fact, I really don't need inheritance at all if this was my end goal; however, in the near future I will need inheritance and A will need to refer to derived classes of B other than C, so I would like to get this class model working.
Thanks guys. You've both given me two ideas to try:
- "from B as b". I know "from C as c" works but this will test that inheritance is setup correctly.
- Setting class B to abstract. It doesn't have any abstract members but conceptually it should be abstract since there should never be a direct instance of B. This might help Hibernate load the proper instances.
I will try these tonight and post the results. Thanks!