kancharla_g wrote:
Hi,
Everytime i openSession in my application it is throwing the below exception, everything is defined in well in .hbm.xml and .java.
The exception is:
...
The mapping file:
<many-to-one name="branchTypes" class="com.dairyqueen.dto.BranchTypes">
<column name="BRANCH_TYPE" not-null="true" />
</many-to-one>
public BranchTypes getBranchTypes() {
return this.branchTypes;
}
public void setBranchTypes(BranchTypes branchTypes) {
this.branchTypes = branchTypes;
}
Please help me how to overcome this exception
The mapping file getter/setter methods look correct. Are you certain that the BranchTypes class in your java code is from the com.dairyqueen.dto package ?