Annotation版本的hibernate
来源:互联网 发布:阳光网络logo图片素材 编辑:程序博客网 时间:2024/05/14 05:30
使用Annotation版本的hibernate
加载:
hibernate-annotations-3.4.0.GA/hibernate-annotations-3.4.0.GA/lib
|-ejb3-persistence.jar
|-hibernate-commons-annotations.jar
hibernate-annotations-3.4.0.GA/hibernate-annotations-3.4.0.GA
|-hibernate-annotations.jar
实体类 package com.kevin.hibernate.model; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Teacher { private int id; private String name; private String title; @Id public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } }
Hibernate.cfg.xml
<mapping class="com.kevin.hibernate.model.Teacher"/>
- Annotation版本的hibernate
- 03hibernate Annotation版本的hibernate
- Hibernate的Annotation版本的HelloWorld
- Hibernate 中创建Annotation版本的HelloWorld
- Hibernate的关系映射总结annotation版本
- 003:hibernate:Annotation版本的Helloworld
- 建立 Annotation版本的hibernate小例子
- hibernate 建立annotation版本的helloworld
- Hibernate(annotation版本helloworld)-2
- annotation版本的helloworld
- hibernate的Annotation配置
- Hibernate 简单的annotation
- Hibernate的Annotation注解
- Hibernate的Annotation注解
- Hibernate的Annotation注解
- hibernate--annotation的使用
- Hibernate的Annotation注解
- Hibernate的Annotation注解
- Chapter 22: Using Item Renderers and Item Editors--Creating drop-in item renderers and item editors
- 关于像数据库输入中文显示乱码的问题
- 将两个有序链表合并成一个有序链表——搜狐畅游笔试题归来
- 没什么可写的
- 软件设计面向用户准则
- Annotation版本的hibernate
- 构建高性能Web站点(笔记八)
- Oracle Procedure中使用游标cursor更新多表
- 简单隐藏php,及自定义路由
- Oracle Cursor游标自身更新
- 常用的VC插件
- 构建高性能Web站点(笔记六)
- Chapter 22: Using Item Renderers and Item Editors--Creating inline item renderers and editors
- 递归查找字符串(grep -r)