I figured out the problem. Here's the solution in case anyone else runs into this problem.
Turns out my mapping file was somewhat incorrect. Actually it wasn't incorrect, it was missing something. Before it looked like:
Code:
<class name="com.tickets.audit.TestObject" table="TestObject">
<id type="long" column="id">
<generator class="sequence"/>
</id>
<property name="name"
column="name"
type="string"/>
</class>
Turns out instead of specifying column="id", I should have said name="id". I assumed that if have column in there, that Hibernate would know what attribute to set in the pojo. I figured since it works that way if I specified only name, that it would work the other way around. So now my mapping looks like:
Code:
<class name="com.tickets.audit.TestObject" table="TestObject">
<id type="long" name="id" column="id">
<generator class="sequence"/>
</id>
<property name="name"
column="name"
type="string"/>
</class>