uuidsupport.java.svn-base
来自「一个使用ssh+ext的例子。 希望对开发这个应用的人带来好处。仔细研究里面的」· SVN-BASE 代码 · 共 22 行
SVN-BASE
22 行
package com.hotelmaster.home.domain;
import javax.persistence.*;
import org.hibernate.annotations.GenericGenerator;
/**
* Class description goes here.
*
* @author Liang
* @Date Apr 17, 2008
*/
public abstract class UUIDSupport {
protected String id;
@Id
@Column(nullable=false, updatable=false, length=32)
@GeneratedValue(generator="system-uuid")
@GenericGenerator(name="system-uuid", strategy="uuid")
public String getId() { return id; }
public void setId(String id) { this.id = id; }
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?