hibernate3.x
Benson2012
这个作者很懒,什么都没留下…
展开
-
对象模型的细粒度划分
person.sql if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[person2]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[person2]GO CREATE TABLE [dbo].[person2] ( [id原创 2014-04-11 13:45:58 · 438 阅读 · 0 评论 -
复合主键
person3.sql if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[person3]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[person3]GO CREATE TABLE [dbo].[person3] ( [n原创 2014-04-11 13:46:01 · 423 阅读 · 0 评论 -
复合主键2
person3.sql if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[person3]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[person3]GO CREATE TABLE [dbo].[person3] ( [n原创 2014-04-11 13:46:05 · 412 阅读 · 0 评论 -
类的继承(joined-subclass)
titem.sql if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tbook]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[tbook]GO if exists (select * from dbo.sysobjects原创 2014-04-11 13:46:08 · 633 阅读 · 0 评论 -
HibernateSessionFactory
package org.lxh.hibernate02; import org.hibernate.HibernateException;import org.hibernate.Session;import org.hibernate.cfg.Configuration; /** * Configures and provides access to Hibernate sessions,原创 2014-04-11 13:46:03 · 507 阅读 · 0 评论 -
类的继承(subclass)
item.sql if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[item]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[item]GO CREATE TABLE [dbo].[item] ( [id] [varchar]原创 2014-04-11 13:46:10 · 494 阅读 · 0 评论