Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:[/b] hibernate-3.0
[b]Mapping documents:[/b]
<hibernate-mapping>
<class name="Resource" table="resource">
<id column="ResourceId" name="id" type="java.lang.Long">
<generator class="native"/>
</id>
<property column="ResourceName" length="255" name="resourcename" not-null="true" type="java.lang.String"/>
<joined-subclass name="Managedresource" table="managedresource" >
<key column="ResourceId"/>
<property column="ManagementMethodSupported" length="255" name="managementmethodsupported" not-null="true"
type="java.lang.String"/>
</joined-subclass>
</class>
</hibernate-mapping>
class Managedresource extends Resource.
I use "Table per subclass" create DB and mapping files.
when I query Resource, the sql use "outer" to find out all result include Managedresource. How can I stop to use "outer" sql? I wanna get Resource result only when I query Resource