摘要:
Hibernate查询方式: 一、OID查询 Hibernate根据对象的OID(主键)进行检索 ①、get方法:Customer customer=session.get(Customer.class,1l); ②、load方法:Customer customer=session.load(Cus 阅读全文
posted @ 2020-11-10 17:19
一杯水M
阅读(158)
评论(0)
推荐(0)
摘要:
一、创建表 CREATE TABLE sys_user ( user_id bigint IDENTITY(1,1) NOT NULL PRIMARY Key, user_code varchar(32) NULL, user_name varchar(64) NULL, user_password 阅读全文
posted @ 2020-11-10 16:15
一杯水M
阅读(134)
评论(0)
推荐(0)
摘要:
1、创建一对多表SQLServer的Sql语句 CREATE TABLE [dbo].[cst_customer]( [cust_id] [bigint] IDENTITY(1,1) NOT NULL PRIMARY Key, [cust_name] [varchar](32) NOT NULL, 阅读全文
posted @ 2020-11-10 14:44
一杯水M
阅读(140)
评论(0)
推荐(0)