Hi there,
I am using Hibernate Tools for Eclipse to generate HBM files but this is all it gives me:
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 package="com.......persistence">
<class name="ClassName">
</class>
</hibernate-mapping>
None of the columns (attributes) in the class are picked up by Hibernate Tools. Here is my POJO Java Class:
Code:
package com.trendlogix.persistence;
import java.sql.Date;
public class AppNotes {
private String nteId;
private String nteType;
private Date nteDate;
private String nteStatus;
private String nteClientVisibilityInd;
private String nteText;
public String getNteId() {
return nteId;
}
public void setNteId(String nteId) {
this.nteId = nteId;
}
public String getNteType() {
return nteType;
}
public void setNteType(String nteType) {
this.nteType = nteType;
}
public Date getNteDate() {
return nteDate;
}
public void setNteDate(Date nteDate) {
this.nteDate = nteDate;
}
public String getNteStatus() {
return nteStatus;
}
public void setNteStatus(String nteStatus) {
this.nteStatus = nteStatus;
}
public String getNteClientVisibilityInd() {
return nteClientVisibilityInd;
}
public void setNteClientVisibilityInd(String nteClientVisibilityInd) {
this.nteClientVisibilityInd = nteClientVisibilityInd;
}
public String getNteText() {
return nteText;
}
public void setNteText(String nteText) {
this.nteText = nteText;
}
}
I am using Eclipse Version: 3.4.2 and Hibernate Tools for Eclipse Version: 3.2.4.GA-R200905070146-H18.
I go:
File -> New -> Hibernate XML Mapping file (hbm.xml)
Could someone please let me know what might be wrong? Is it that I did not install/configure Hibernate Tools properly OR is it that above listed portion of hbm file is all Hibernate Tools will provide?
Thanks in advance
Saeed