`
elite20130514
  • 浏览: 47869 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
po类Husband package com.hibernate.demo.po; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; @Entity public class Husband { private int id; private String name; ...
po类Student package com.hibernate.demo.po; public class Student { private int id; private String name; 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 ...
The Road to Success It is well that young men should begin at the beginning and occupy the most subordinate positions. Many of the leading businessmen of Pittsburgh had a serious responsibility thrust upon them at the very threshold of their career. They were introduced to the broom, and spent the ...
<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping package="com.hibernate.demo.po"> ...
方式一: po类Teacher package com.hibernate.demo.po; import java.util.Date; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; @Entity @Table(name="teacher&q ...
libs:  代码: package com.hibernate.demo.po; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.AnnotationConfiguration; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; public class TestEvents { private static Ses ...
 开始学习extjs。。。搞了半天的spket代码提示,没成功,希望得到高手指点。。。呜呜。。 项目结构图:  代码: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charse ...
单例模式概念        在面向对象的编程中,要求一个类有且仅存在一个实例,提供一个全局的访问方法,避开构造函数,提供一种机制来实现单一实例,     这就是单例模式(Singleton模式)。另因为在as3中无法操作线程,因此我们无需考虑多线程情况下的单例。     单例模式分为懒汉式和饿汉式,懒汉式就是延加载即需要时才创建对象,饿汉式就是定义全局变量时就创建对象;     对于多线程语言推荐使用饿汉式。 ---------------------------------------------------------------下边列出as的几种单例模式------------ ...
hibernate 映射基本属性 新建一个po,News public class News { private Long id; private String title; private String content; private String fullContent; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } publ ...
The Climate of New Zealand Teacher: Matthew, what is the climate of New Zealand? Matthew: Very Cold, sir. Teacher: Wrong. Matthew: But, sir! When they send us meat it always arrives frozen! 新西兰的气候 老师:马修,新西兰的气候怎么样? 马修:先生,那里的天气很冷。 老师:错了。 马修:可是,先生!从那儿运来的猪肉都冻得硬邦邦的。 My Sister's Fingers Teacher ...
      jdk1.3以后,开发者可以在runtime期间创建接口的代理实例,动态代理是实现AOP的绝好的底层技术 涉及到java.lang.reflect 包中的两个类:Proxy ,InvocationHandler,可以通过实现该接口定义横切逻辑,并通过反射机制调用目标类的 ...
啥都不说了,看代码: generatorConfig.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" > <genera ...
    今日公司项目开发需要整合hibernate,之前用的是mybatis,啥都别说,学呗,下边是我学习hibernate api后整理的代码,代码比较简单,有不足的地方请指正!这只是一个入门的例子。。。 项目目录:所用的jar包(每个jar具体的作用这里就不列出来了,可以参http://nopainnogain.iteye.com/blog/761630):      具体的项目代码请查看附件,这里贴出测试代码,便于讨论问题,注:初学者,代码乱请见谅! package com.hibernate.demo.test; import org.hibernate.Session; ...
\u4eca\u5929\u662f\u35\u6708\u31\u35\u53f7\uff0c\u662f\u672c\u4eba\u7533\u8bf7\u535a\u5ba2\u7684\u7b2c\u4e8c\u5929\uff0c\u5199\u8fd9\u7bc7\u5c0f\u672d\uff0c\u53ea\u662f\u5355\u7eaf\u7684\u8bb0\u5fc6\u4e0b\u65f6\u95f4\u8f74\uff0c\u544a\u8bc9\u8eab\u8fb9\u7684\u670b\u53cb\u4eec\uff0c\u6211\uff0c\u4e00\ ...
Global site tag (gtag.js) - Google Analytics