摘要: 1:建立所需要的类,如:package com.hibernate.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity//这个是配置annotation的@Table(catalog="Hibernate",schema="dbo",name="[User]")//指定数据库,数据表public class User { private int id; private Strin 阅读全文
posted @ 2013-08-05 09:16 shenghaishiweini 阅读(148) 评论(0) 推荐(0) 编辑