📄 message.java
字号:
package cn.hxex.tools.model;
/**
* The Message
*
* @hibernate.class
* table="MESSAGE"
*/
public class Message implements java.io.Serializable
{
/**
* @hibernate.id
* generator-class="uuid.hex"
* column="ID"
*/
private String id;
/**
* @hibernate.property
* column="TITLE"
*/
private String title;
/**
* @hibernate.property
* column="CONTENT"
*/
private String content;
/**
* @hibernate.set
* cascade="all"
* @hibernate.key
* column="USER_ID"
* @hibernate.one-to-many
* class="cn.hxex.tools.model.User"
*/
private User user;
// Constructors
/** default constructor */
public Message()
{
}
/** full constructor */
public Message(String title, String content, User user)
{
this.title = title;
this.content = content;
this.user = user;
}
// Property accessors
public String getId()
{
return this.id;
}
public void setId(String id)
{
this.id = id;
}
public String getTitle()
{
return this.title;
}
public void setTitle(String title)
{
this.title = title;
}
public String getContent()
{
return this.content;
}
public void setContent(String content)
{
this.content = content;
}
public User getUser()
{
return this.user;
}
public void setUser(User user)
{
this.user = user;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -