- 博客(748)
- 资源 (3)
- 收藏
- 关注
原创 删除所有表,所有试图,所有序列,所有存储过程
select 'drop table '||table_name||';' from user_tables ; select 'drop view '||view_name||';' from user_views ; select 'drop sequence '||sequence_name||';' from user_sequences ; select 'drop procedur
2016-10-31 16:17:28
1093
原创 update case when
UPDATE SELF_SERVICE_PLAN t SET t.I_ACT_REPLENISH_AMOUNT = case when t.I_CASH_REPLENISH_AMOUNT > 0 and t.I_CASH_REPLENISH_AMOUNT < 50001 then 50000 when t.I_CASH_REPLENISH_AMOUNT > 50000 and t.I_
2016-10-31 14:27:17
981
原创 tomcat异常之java.io.EOFException
严重: IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) at java.io.ObjectInpu
2016-06-28 10:46:55
2963
原创 LineChar组件报错解决方法
错误信息如下: TypeError: Error #1009: 无法访问空对象引用的属性或方法。 at Function/platform.module:ModulesManager/addModule/platform.module:showModule()[D:\Design\eclipse_new\workspace\PlatformLib\src\platform\module
2016-06-25 09:33:20
1175
原创 3.hql查询实体:hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.mysql.jdbc.Driver j
2016-06-25 09:33:16
339
原创 2.hql查询实体:工具类
package com.bjpowernode.hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { private static S
2016-06-25 09:33:13
608
原创 4.hql简单属性查询:测试
package com.bjpowernode.hibernate; import java.text.SimpleDateFormat; import java.util.Date; import org.hibernate.Session; public class InitData { public static void main(String[] args)
2016-06-25 09:33:10
485
原创 4.hql查询实体:测试
package com.bjpowernode.hibernate; import java.text.SimpleDateFormat; import java.util.Date; import org.hibernate.Session; public class InitData { public static void main(String[] args)
2016-06-25 09:32:48
312
原创 5.hql简单属性查询:总结
hibernate查询语言hql 在hql中关键字不区分大小写,通常小写,类的名称和属性名称必须区分大小写 1、简单属性查询【重要】 * 单一属性查询,返会属性结果集列表,元素类型和实体类中相应的类型一致 * 多个属性查询,多个属性查询返会对象数组,对象数组的长度取决于属性的个数 对象数组中元素的类型取决于属性在实体类中的类型 * 如果认为返会数组不够对象化,可以使用h
2016-06-25 09:32:36
280
原创 1.hql查询实体:Object,hbm
package com.bjpowernode.hibernate; import java.util.Set; public class Classes { private int id; private String name; private Set students; public int getId() { return id;
2016-06-25 09:32:36
387
原创 2.hql简单属性查询:工具类
package com.bjpowernode.hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { private static S
2016-06-25 09:32:30
336
原创 3.hql简单属性查询:hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.mysql.jdbc.Driver j
2016-06-25 09:32:19
395
原创 1.hql简单属性查询:Object,hbm
package com.bjpowernode.hibernate; import java.util.Set; public class Classes { private int id; private String name; private Set students; public int getId() { return id;
2016-06-25 09:32:14
336
原创 1.LazyForSingleEnd Object,hbm
package com.bjpowernode.hibernate; public class User { private int id; private String name; private Group group; public int getId() { return id; } public void setId(int id) { this.id
2016-06-24 16:48:05
268
原创 在某段时间内,随机产生一个时间,包括时分秒
package com.bjpowernode.hibernate; import java.text.SimpleDateFormat; import java.util.Date; import junit.framework.TestCase; public class RondomDateTest extends TestCase{ public void testRondom
2016-06-24 16:48:02
10349
原创 5.LazyForSingleEnd 总结
hibernate在单端关联上的lazy特性: /单端关联标签上,可以取值:false/proxy/noproxy 标签上的lazy不会影响单端关联对象的lazy策略
2016-06-24 16:47:57
289
原创 3.LazyForSingleEnd hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.mysql.jdbc.Driver jdbc:mys
2016-06-24 16:47:55
218
原创 4.LazyForSingleEnd 测试
package com.bjpowernode.hibernate; import org.hibernate.Session; public class InitData { /** * @param args */ public static void main(String[] args) { Session session = null; try { ses
2016-06-24 16:47:46
201
原创 2.LazyForSingleEnd 工具类
package com.bjpowernode.hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { private static SessionFa
2016-06-24 16:47:36
206
原创 4.LazyForCollection 测试
package com.bjpowernode.hibernate; import java.util.HashSet; import java.util.Set; import org.hibernate.Session; public class InitData { public static void main(String[] args) { Session session
2016-06-24 16:47:29
186
原创 5.LazyForCollection 总结
lazy策略在集合上可以取值,true/false/extra 标签上的lazy不会影响集合上的lazy特性,上的lazy只会影响普通属性
2016-06-24 16:47:18
424
原创 3.LazyForCollection hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.mysql.jdbc.Driver jdbc:mys
2016-06-24 16:47:13
153
原创 2.LazyForCollection 工具类
package com.bjpowernode.hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { private static SessionFa
2016-06-24 16:47:10
220
原创 1.LazyForCollection Object,hbm
package com.bjpowernode.hibernate; import java.util.Set; public class Classes { private int id; private String name; private Set students; public int getId() { return id; } public vo
2016-06-23 11:01:05
206
原创 5.LazyForClass 总结
hibernate的lazy策略可以使用在: * 标签上,可以取值:true/false * 标签上,可以取值:true/false,需要类增强工具,对字节码进行修改 * /标签上,可以取值:true/false/extra * /单端关联标签上,可以取值:false/proxy/noproxy lazy的概念:在真正使用某个对象的时候才正真的去创建,对于hibernate才会正真的
2016-06-23 11:00:54
219
原创 4.LazyForClass 测试
package com.bjpowernode.hibernate; import java.util.Date; import org.hibernate.Session; public class InitData { public static void main(String[] args) { Session session = null; try { sessi
2016-06-23 11:00:29
196
原创 3.LazyForClass hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.mysql.jdbc.Driver jdbc:mys
2016-06-23 11:00:09
162
原创 2.LazyForClass 工具类
package com.bjpowernode.hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { private static SessionFa
2016-06-23 10:59:27
219
原创 1.LazyForClass Object,hbm
package com.bjpowernode.hibernate; import java.util.Date; public class User { private int id; private String name; private String password; private Date createTime; private Date expir
2016-06-23 10:59:25
166
原创 4.集合映射:测试
package com.bjpowernode.hibernate; import java.util.HashMap; import java.util.Map; import junit.framework.TestCase; import org.hibernate.Session; public class CollectionMappingTest extends TestCas
2016-06-23 10:59:19
170
原创 3.集合映射:hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.mysql.jdbc.Driver j
2016-06-23 10:59:17
218
原创 2.集合映射:工具类
package com.bjpowernode.hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { private static SessionFa
2016-06-23 10:59:14
198
原创 1.集合映射:Object,hbm
package com.bjpowernode.hibernate; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; @SuppressWarnings("rawtypes") pub
2016-06-23 10:59:11
191
原创 5.Component映射:总结
Component映射 在hibernate中Component映射采用标签即可 Component是某个实体的逻辑组成部分,它与实体类的主要差别在于,它没有oid Component在DDD中成为值类 采用Component的好处:实现对象模型的细粒度划分,复用率高,含义明确,层次分明 对象模型与关系模型的设计恰恰相反,对象模型一般是细粒度的,关系模型一
2016-06-22 09:01:14
240
原创 4.Component映射:测试
package com.bjpowernode.hibernate; import org.hibernate.Session; import junit.framework.TestCase; public class ComponentMappingTest extends TestCase { public void testSave1() { Session session
2016-06-22 09:00:09
294
原创 3.Component映射:hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.mysql.jdbc.Driver jdbc:mys
2016-06-22 08:59:55
167
原创 2.Component映射:工具类
package com.bjpowernode.hibernate; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtils { private static SessionFa
2016-06-22 08:59:29
620
原创 1.Component映射:Object,hbm
package com.bjpowernode.hibernate; public class Contact { private String email; private String address; private String zipCode; private String contactTel; public String getEmail() { re
2016-06-22 08:59:23
284
原创 5.复合主键:总结
复合(联合)主键映射: 通常做法是将主键相关字段放到一个单独的类中,这样类是有要求的: * 必须实现序列化接口 * 覆盖equals和hashcode方法
2016-06-22 08:59:18
344
com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar
2016-06-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人