Hi Max -
Here is the output:
HBM File:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jun 18, 2006 9:07:03 PM by Hibernate Tools 3.1.0.beta4 -->
<hibernate-mapping>
<class name="org.ascendant.jreport.domain.JrChart" table="jr_chart" catalog="jreports">
<id name="chartId" type="long">
<column name="CHART_ID" />
<generator class="assigned" />
</id>
<version name="version" type="java.lang.Integer">
<column name="VERSION" />
</version>
<property name="chartName" type="string">
<column name="CHART_NAME" length="45" />
</property>
<property name="description" type="string">
<column name="DESCRIPTION" />
</property>
<property name="chartType" type="java.lang.Integer">
<column name="CHART_TYPE" />
</property>
<property name="XAxisLabel" type="string">
<column name="X_AXIS_LABEL" length="45" />
</property>
<property name="YAxisLabel" type="string">
<column name="Y_AXIS_LABEL" length="45" />
</property>
<property name="width" type="java.lang.Integer">
<column name="WIDTH" />
</property>
<property name="height" type="java.lang.Integer">
<column name="HEIGHT" />
</property>
<property name="createdDate" type="timestamp">
<column name="CREATED_DATE" length="19" />
</property>
<property name="updatedDate" type="timestamp">
<column name="UPDATED_DATE" length="19" />
</property>
<property name="createdBy" type="string">
<column name="CREATED_BY" length="45" />
</property>
<property name="updatedBy" type="string">
<column name="UPDATED_BY" length="45" />
</property>
<property name="active" type="java.lang.Boolean">
<column name="ACTIVE" />
</property>
<set name="jrReports" inverse="true">
<key>
<column name="CHART_ID" not-null="true" />
</key>
<one-to-many class="org.ascendant.jreport.domain.JrReport" />
</set>
</class>
</hibernate-mapping>
The file generated:
package org.ascendant.jreport.domain;
// Generated Jun 18, 2006 9:07:04 PM by Hibernate Tools 3.1.0.beta4
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* JrChart generated by hbm2java
*/
public class JrChart implements java.io.Serializable {
// Fields
private long chartId;
private Integer version;
private String chartName;
private String description;
private Integer chartType;
private String XAxisLabel;
private String YAxisLabel;
private Integer width;
private Integer height;
private Date createdDate;
private Date updatedDate;
private String createdBy;
private String updatedBy;
private Boolean active;
private Set<JrReport> jrReports = new HashSet<JrReport>(0);
// Constructors
/** default constructor */
public JrChart() {
}
/** minimal constructor */
public JrChart(long chartId) {
this.chartId = chartId;
}
/** full constructor */
public JrChart(long chartId, String chartName, String description, Integer chartType, String XAxisLabel, String YAxisLabel, Integer width, Integer height, Date createdDate, Date updatedDate, String createdBy, String updatedBy, Boolean active, Set<JrReport> jrReports) {
this.chartId = chartId;
this.chartName = chartName;
this.description = description;
this.chartType = chartType;
this.XAxisLabel = XAxisLabel;
this.YAxisLabel = YAxisLabel;
this.width = width;
this.height = height;
this.createdDate = createdDate;
this.updatedDate = updatedDate;
this.createdBy = createdBy;
this.updatedBy = updatedBy;
this.active = active;
this.jrReports = jrReports;
}
// Property accessors
public long getChartId() {
return this.chartId;
}
public void setChartId(long chartId) {
this.chartId = chartId;
}
public Integer getVersion() {
return this.version;
}
public void setVersion(Integer version) {
this.version = version;
}
public String getChartName() {
return this.chartName;
}
public void setChartName(String chartName) {
this.chartName = chartName;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public Integer getChartType() {
return this.chartType;
}
public void setChartType(Integer chartType) {
this.chartType = chartType;
}
public String getXAxisLabel() {
return this.XAxisLabel;
}
public void setXAxisLabel(String XAxisLabel) {
this.XAxisLabel = XAxisLabel;
}
public String getYAxisLabel() {
return this.YAxisLabel;
}
public void setYAxisLabel(String YAxisLabel) {
this.YAxisLabel = YAxisLabel;
}
public Integer getWidth() {
return this.width;
}
public void setWidth(Integer width) {
this.width = width;
}
public Integer getHeight() {
return this.height;
}
public void setHeight(Integer height) {
this.height = height;
}
public Date getCreatedDate() {
return this.createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
public Date getUpdatedDate() {
return this.updatedDate;
}
public void setUpdatedDate(Date updatedDate) {
this.updatedDate = updatedDate;
}
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public String getUpdatedBy() {
return this.updatedBy;
}
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
public Boolean getActive() {
return this.active;
}
public void setActive(Boolean active) {
this.active = active;
}
public Set<JrReport> getJrReports() {
return this.jrReports;
}
public void setJrReports(Set<JrReport> jrReports) {
this.jrReports = jrReports;
}
}
Thanks & Regards
Ramesh
|