自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(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 954

原创 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 50000when t.I_CASH_REPLENISH_AMOUNT > 50000 and t.I_

2016-10-31 14:27:17 885

原创 tomcat异常之java.io.EOFException

严重: IOException while loading persisted sessions: java.io.EOFExceptionjava.io.EOFExceptionat java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281)at java.io.ObjectInpu

2016-06-28 10:46:55 2839

原创 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 1105

原创 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 308

原创 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 574

原创 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 442

原创 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 278

原创 5.hql简单属性查询:总结

hibernate查询语言hql在hql中关键字不区分大小写,通常小写,类的名称和属性名称必须区分大小写1、简单属性查询【重要】 * 单一属性查询,返会属性结果集列表,元素类型和实体类中相应的类型一致 * 多个属性查询,多个属性查询返会对象数组,对象数组的长度取决于属性的个数   对象数组中元素的类型取决于属性在实体类中的类型 * 如果认为返会数组不够对象化,可以使用h

2016-06-25 09:32:36 237

原创 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 351

原创 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 299

原创 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 363

原创 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 301

原创 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 228

原创 在某段时间内,随机产生一个时间,包括时分秒

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 10195

原创 5.LazyForSingleEnd 总结

hibernate在单端关联上的lazy特性:/单端关联标签上,可以取值:false/proxy/noproxy标签上的lazy不会影响单端关联对象的lazy策略

2016-06-24 16:47:57 260

原创 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 177

原创 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 175

原创 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 175

原创 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 155

原创 5.LazyForCollection 总结

lazy策略在集合上可以取值,true/false/extra标签上的lazy不会影响集合上的lazy特性,上的lazy只会影响普通属性

2016-06-24 16:47:18 374

原创 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 121

原创 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 171

原创 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 167

原创 5.LazyForClass 总结

hibernate的lazy策略可以使用在:* 标签上,可以取值:true/false* 标签上,可以取值:true/false,需要类增强工具,对字节码进行修改* /标签上,可以取值:true/false/extra* /单端关联标签上,可以取值:false/proxy/noproxylazy的概念:在真正使用某个对象的时候才正真的去创建,对于hibernate才会正真的

2016-06-23 11:00:54 178

原创 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 159

原创 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 126

原创 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 189

原创 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 125

原创 5.集合映射:总结

完成set、list、array、map的映射

2016-06-23 10:59:22 218

原创 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 141

原创 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 172

原创 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 169

原创 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 165

原创 5.Component映射:总结

Component映射在hibernate中Component映射采用标签即可Component是某个实体的逻辑组成部分,它与实体类的主要差别在于,它没有oidComponent在DDD中成为值类采用Component的好处:实现对象模型的细粒度划分,复用率高,含义明确,层次分明对象模型与关系模型的设计恰恰相反,对象模型一般是细粒度的,关系模型一

2016-06-22 09:01:14 206

原创 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 251

原创 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 137

原创 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 574

原创 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 241

原创 5.复合主键:总结

复合(联合)主键映射:通常做法是将主键相关字段放到一个单独的类中,这样类是有要求的:* 必须实现序列化接口* 覆盖equals和hashcode方法

2016-06-22 08:59:18 268

解决无法新建源代码(src main java)目录的问题

解决无法新建源代码(src main java)目录的问题

2016-08-31

com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar

本次对于myeclipse10破解后,导出war包时报“SECURITY ALERT: INTEGERITY CHECK ERROR”进行了破解。 1.关闭MyEclipse。 2.备份plugins目录下的文件com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar,具体做法:把 com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar修改成 com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.txt。 3.把经破解的com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar拷贝至备份plugins目录下,接着把 经破解的com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar修改成 com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.txt2。 4.启动MyEclipse,关闭MyEclipse。 5.把经破解的com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.txt2修改成 com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar。 6.启动MyEclipse。

2016-06-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除