I’m using Eclipse 3.1.0 and MyEclipse 4.0.3 GA and i have some trouble generating the xml file from a java bean. I have a simple Cat bean (show below) and i would like to turn it in a hbm.xml file but when i click in “Run XDoclet” it doesn’t generate any file. It seems, that it can’t find the bean.
Here is my Cat bean:
****
package src;
/**
* @hibernate.class table="CATS"
*/
public class Cat {
private java.lang.Long id;
/**
* @hibernate.id generator-class="native" column="CAT_ID"
*/
public java.lang.Long getId() {
return id;
}
public void setId(java.lang.Long id) {
this.id=id;
}
}
*****
I put this file in a “src” package that is a subdirectory of my project.
Here is the output of the “Run XDoclet”:
******
Buildfile: C:\Documents and Settings\gmauri\workspace\KissDemo2\.xdoclet-build.tmp.xml
N65540:
_xdoclet_generation_:
BUILD SUCCESSFUL
Total time: 3 seconds
******
In the project properties i’ve added only the support for hibernate 3 (property “version” changed from blank to “3.0”). I’ve tried to implement Serializable in the java bean but i don’t suceeded, i’ve also tried to implement some constructors but .. nothing .. there is something obvious that i’m missing …
Thanks for any help.