FileDocCategorySizeDatePackage
Comment.javaAPI DocHibernate 3.2.5887Mon May 16 07:08:04 BST 2005org.hibernate.test.joinfetch

Comment

public class Comment extends Object
author
Gavin King

Fields Summary
private String
text
private Item
item
private Calendar
timestamp
private Long
id
Constructors Summary
Comment()

public Comment(Item item, String comment)

		this.text = comment;
		this.item = item;
		item.getComments().add(this);
		this.timestamp = Calendar.getInstance();
	
Methods Summary
public java.lang.LonggetId()

		return id;
	
public ItemgetItem()

		return item;
	
public java.lang.StringgetText()

		return text;
	
public java.util.CalendargetTimestamp()

		return timestamp;
	
public voidsetId(java.lang.Long id)

		this.id = id;
	
public voidsetItem(Item item)

		this.item = item;
	
public voidsetText(java.lang.String text)

		this.text = text;
	
public voidsetTimestamp(java.util.Calendar timestamp)

		this.timestamp = timestamp;