日期:2014-05-17 浏览次数:20698 次
package com.map.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @org.hibernate.annotations.Entity(dynamicUpdate = true) @Table(name = "test") public class Test{ // Fields private long id; private String name; private String descn;//描述 // Property accessors @Id @GeneratedValue(strategy = GenerationType.AUTO) public long getId() { return this.id; } public String getDescn() { return descn; } public String getName() { return name; } public void setName(String name) { this.name = name; } public void setId(long id) { this.id = id; } public void setDescn(String descn) { this.descn = descn; } }