I believe you put me on the right track but I'm still running into problems. I added the following
bolded code to my .hbm.xml file
<class
name="gov.epa.otaq.verify.hibernate.McCert"
table="MC_CERT"
discriminator-value="conditional"
select-before-update="true"
>
......
<subclass name="gov.epa.otaq.verify.hibernate.McCertV"
discriminator-value="non-conditional"
dynamic-update="true" dynamic-insert="true"/>
.......
</class>
When I run the following code I get the error "Could not execute JDBC batch update" :
Code:
try {
Criteria crit = hibernateSession.createCriteria(McCert.class);
crit.add(Expression.eq("fuelType", fuelType));
mcCertV = (McCertV) crit.uniqueResult();
} catch (HibernateException he) {
System.out.println("Could not search for McCert by fuelType: " +
he);
throw (he);
}
Am I missing something ?
Thanks,
Matt