hi,
i am new to Hibernate, and i am trying to create a List of composite element .
The component class is "Comment", and i want "Process" class to hold List of comments.
I created a component class named "Comment" :
Code:
public class Comment {
private String comment;
private long createdTimeStamp;
private User createdBy;
}
and i am trying to create a List of component class "Comment" in another class named "Process":
Code:
public class Process{
private List<Comment> comments = new ArrayList<Comment>();
/**
*
* @hibernate.list table="ENTITY_COMMENTS"
* @hibernate.collection-composite-element class="Comment"
* @hibernate.collection-index column="COMMENT_INDEX"
*/
public List<Comment> getComments() {
return comments;
}
When I try to run XDoclet plugin, I am getting an error:
Quote:
The content of element type "list" is incomplete, it must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(el
o-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)".
I will be happy for any kind of help..
thanks,
Nadav.