Hibernate version:1.2
I have lazy loading switched on and have classes mapped with inheritance:
Code:
<class name="Release" table="release" proxy="IRelease">
<id name="Id" type="Int32" >
<column name="id" />
<generator class="native" />
</id>
<discriminator>
<column name="matter"/>
</discriminator>
...
<subclass name="PhysicalRelease" discriminator-value="0" lazy="true" proxy="IPhysicalRelease">
...
</subclass>
<subclass name="DigitalRelease" discriminator-value="1" lazy="true" proxy="IDigitalRelease">
...
</subclass>
We have added the proxy interface so that we can check the type of an object at runtime.
Making this change required removing all of our access strategies so previously on id (and other properties) we had access="nosetter.camelcase" obviously because this is now an interface we can't do that.
My question is whether there is a way to keep the access strategies while using the proxy interfaces?