Hi,
I'm getting a when I try to access a ternary:
Code:
net.sf.hibernate.MappingException: component class not found
net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:764)
Here is my mapping file:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="com.cc.tss.TaskTemplate" table="task_template">
<id name="id" type="integer" column="id">
<generator class="sequence">
<param name="sequence">task_template_id_seq</param>
</generator>
</id>
<property name="name" column="name" type="string"/>
<set name="tasksAndPayRates"
table="task_task_template"
lazy="false"
order-by="task_id"
cascade="all">
<key column="template_id"/>
<composite-element class="TaskAndPayRate">
<many-to-one name="task" class="Task" column="task_id"/>
<many-to-one name="payRate" class="PayRate" column="pay_rate_id"/>
</composite-element>
</set>
</class>
</hibernate-mapping>
Task and PayRate are both defined with their own mapping files (that work). My tables look like:
task_template (id, name)
task_task_template (template_id, task_id, payRate_id)
Any help would be appreciated!