Hibernate version: 3.0
Mapping documents:
package com.sample;
import java.util.Date;
/**
* @hibernate.class table="Baseline"
* @author sandeshd
*
*/
public class Baseline {
//
// Bean properties
//
/**
* @hibernate.id generator-class="assigned"
*/
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
/**
* @hibernate.property
* @return
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* @hibernate.property
* @return
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
* @hibernate.property
* @return
*/
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
/**
* @hibernate.property
* @return
*/
public Date getInitializationDate() {
return initializationDate;
}
public void setInitializationDate(Date initializationDate) {
this.initializationDate = initializationDate;
}
/**
* @hibernate.property
* @return
*/
public Date getLastUpdatedDate() {
return lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
/**
* @hibernate.property
* @return
*/
public Date getPermanentLockDate() {
return permanentLockDate;
}
public void setPermanentLockDate(Date permanentLockDate) {
this.permanentLockDate = permanentLockDate;
}
/** * @hibernate.array table="baseline_signatories" cascade="save-update" * @hibernate.collection-key column="baselineId" * @hibernate.collection-index column="idx" * @hibernate.collection-many-to-many column="User" class="com.sample.User" */ public User[] getPotentialSignatories() { return potentialSignatories; }
public void setPotentialSignatories(User[] potentialSignatories) {
this.potentialSignatories = potentialSignatories;
}
/**
* @hibernate.property
* @return
*/
public boolean isPermanentlyLocked() {
return isPermanentlyLocked;
}
public void setPermanentlyLocked(boolean isPermanentlyLocked) {
this.isPermanentlyLocked = isPermanentlyLocked;
}
//
// Private members
//
private int id;
private String name;
private String description;
private int type;
private Date initializationDate;
private Date lastUpdatedDate;
private Date permanentLockDate;
private User[] potentialSignatories;
private boolean isPermanentlyLocked;
}
Full stack trace of any exception that occurs:
hibernate:
[xdoclet2] Running org.xdoclet.plugin.hibernate.HibernateConfigPlugin
[xdoclet2] Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin
[xdoclet2] * Generate mapping for 'Baseline' entity
[xdoclet2] File /E:/Home/test/classes/com/canarys/cf/extract/extractor/caliberrm/beans/Baseline.hbm.xml did not pass validation:
[xdoclet2] Line: 17 Column: 13
[xdoclet2] Message: The content of element type "array" is incomplete, it must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?)".
BUILD FAILED
E:\Home\test\build.xml:53: org.generama.OutputValidationError:
Line: 17 Column: 13
Message: The content of element type "array" is incomplete, it must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?)".
Name and version of the database you are using:
MySQL 4.1
I'm very much sure that I'm missing some mandatory field. Please let me know what I have to correct.
|