Hibernate Annotations Sample
源代码在线查看: role.java
//$Id: Role.java 14735 2008-06-04 14:05:50Z hardy.ferentschik $
package org.hibernate.test.annotations.quote;
import java.io.Serializable;
import javax.persistence.Id;
import javax.persistence.Entity;
import javax.persistence.GenerationType;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
/**
* @author Emmanuel Bernard
*/
@Entity
@Table(name = "`Role`")
public class Role implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
}