hibernate.cfg.xml:
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
 "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/rampv2</property>
        <property name="hibernate.connection.username">rampv2user</property>
        <property name="hibernate.connection.password">r4mp0R</property>
        <property name="dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
        <property name="show_sql">true</property>
        <property name="transaction.factory_class">
             org.hibernate.transaction.JDBCTransactionFactory
        </property>
        <property name="hibernate.cache.provider_class">
             org.hibernate.cache.HashtableCacheProvider
        </property>
        <property name="hibernate.hbm2ddl.auto">update</property>
      <property name="hibernate.cglib.use_reflection_optimizer">
          false
      </property> 
      <mapping resource="net/hatfieldgroup/rampv2/biz/wq/WQAnalyte.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/wq/WQSample.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/wq/WQSite.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/sed/SedAnalyte.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/sed/SedSample.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/sed/SedSite.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/Lease.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/Waterbody.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/auth/RampUser.hbm.xml"/>
      <mapping resource="net/hatfieldgroup/rampv2/biz/lookup/UserRoles.hbm.xml"/>
    </session-factory>
</hibernate-configuration>
WQAnalyte.hbm.xml:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
   <class name="net.hatfieldgroup.rampv2.biz.wq.WQAnalyte" table="WQANALYTE">
      <id name="analyteID" column="analyteID" type="java.lang.Long">
         <generator class="native" />
      </id>
      <property name="analyteName" type="java.lang.String" />
      <property name="analyteCategory" type="java.lang.String" />
      <property name="units" type="java.lang.String" />
      <property name="abbreviation" type="java.lang.String" />
      <set name="samples" cascade="all" inverse="false" lazy="true">
         <key column="sampleID" />
         <one-to-many class="net.hatfieldgroup.rampv2.biz.wq.WQSample" />
      </set>
   </class>
</hibernate-mapping>
WQAnalyte.java:
Code:
package net.hatfieldgroup.rampv2.biz.wq;
import java.util.Collection;
public class WQAnalyte
{
   private Long analyteID;
   private String analyteName;
   private String analyteCategory;
   private String units;
   private String abbreviation;
   private Collection samples;
   public Long getAnalyteID(){
      return analyteID;
   }
   public String getAnalyteName(){
      return analyteName;
   }
   public String getAnalyteCategory(){
      return analyteCategory;
   }
   public String getUnits(){
      return units;
   }
   public String getAbbreviation(){
      return abbreviation;
   }
   public Collection getSamples(){
      return samples;
   }
   public void setAnalyteID(Long analyteID){
      this.analyteID = analyteID;
   }
   public void setAnalyteName(String analyteName){
      this.analyteName = analyteName;
   }
   public void setAnalyteCategory(String analyteCategory){
      this.analyteCategory = analyteCategory;
   }
   public void setUnits(String units){
      this.units = units;
   }
   public void setAbbreviation(String abbreviation){
      this.abbreviation = abbreviation;
   }
   public void setSamples(Collection samples){
      this.samples = samples;
   }
};
The stack trace unfortunately is just shown in my command window (I'm using Ant with Junit and don't know how to redirect that output) but the source is WQSample.setAnalyteID.
[/code]