Hi Guys
Have to following problem
when I try to build the Export Schema for the database in NetBeans with XDoclet I get the following exception
D:\java\build.xml:27: Schema text failed: component class not found: com.data.HibernateID
My Classes look like this:
Code:
package com.data;
/**
*
*
* @hibernate.class
* table="NEW_HIBERNATE_BEAN"
*
*/
public class NewHibernateBean{
private NewHibernateBeanID id;
/**
* @hibernate.id
* unsaved-value="any"
*/
public NewHibernateBeanID getId () {
return id;
}
public void setId (NewHibernateBeanID id) {
this.id = id;
}
}
and
Code:
package com.data;
import java.io.Serializable;
/**
*
*
* @hibernate.component
*
*
*/
public class NewHibernateBeanID implements Serializable{
private String test;
/**
* @hibernate.property
*/
public String getTest() {
return test;
}
public void setTest(String test) {
this.test = test;
}
public int hashCode() {
return 0
}
public boolean equals(Object obj) {
return true;
}
}
The follwing .hbm.xml file is generated
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping
>
<class
name="com.data.NewHibernateBean"
table="NEW_HIBERNATE_BEAN"
>
<composite-id
name="id"
class="com.data.NewHibernateBeanID"
unsaved-value="any"
>
<key-property
name="test"
type="java.lang.String"
column="test"
/>
</composite-id>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-NewHibernateBean.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
I really dont know why this does not work.
Hope you can help me!
Thank you in advance!