ernst_pluess wrote:
Do I get you right? SegmentR acts as a template for subclasses. There will probably never be an instance of type SegmentR (if yes, using abstract class or interface is a good idea).
Best Regards
Ernst
no...
ok, I'll try to explain it simplier:
I have a class, let's say MyClass. Myclass contains some objectc, which are mapped in hibernate, and works 100% fine.
But there is no table for myclass. Altought, I want to define it in Hibernate. I want to tell hibernate:
Here's MyClass, which has these object types. If I tell load(Myclass), create an instance of myClass, and load all it's objects. If I say save(myClass), don't do anything, or throw an exception.
I know, It's possible to say
<class name="thisClassDoesNotHaveTable">
<subclass name"butThisOneHas">
but I want to map:
<class "thisClassWithNoTable>
<property name="ClassWithTable" type....>
any idea?is it possible?