go4it

just do it

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页

2009年1月25日

SEAM学习(二)---messages示例

摘要: 实体bean:message //$Id: Message.java 902 2006-01-13 14:19:20Z theute $ package org.jboss.seam.example.messages; import static org.jboss.seam.ScopeType.EVENT; import java.io.Serializable; import java.... 阅读全文

posted @ 2009-01-25 16:56 cxccbv 阅读(1483) 评论(0) 推荐(0)

SEAM学习(一)-----安装运行example

摘要: 1.下载jboss seam并解压 2.安装ant:解压bin版本,新建ANT_HOME,并将其bin目录添加到系统path 3.更改seam的build.properties,添加jboss.home D:\\DevelopTool\\jboss-4.2.2.GA。注意路径后边不能有空格 4.用cmd转到examples的registration目录下,运行ant deploy 5.浏览器:ht... 阅读全文

posted @ 2009-01-25 16:27 cxccbv 阅读(1385) 评论(0) 推荐(0)

2009年1月24日

EJB的JPA就这样暂时告一段落了。

摘要: 1.EJB的JPA暂时就“集中攻克”到此,也就是说以后可能很少有一大片的时间来专门深入研究EJB了,只能靠零散的时间, 利用时间的积累,来逐步深厚EJB的功力了,接下来,坚持至少每周看一次EJB,记录在cnblog中。 2.明天开始JSF之旅,然后就是SEAM和grails。 3.如果seam开发速度够快的话,可以先把grails暂且放在一边。 阅读全文

posted @ 2009-01-24 23:47 cxccbv 阅读(312) 评论(0) 推荐(0)

多地多关联的增加,修改和删除

摘要: package com.score.test; import java.util.HashSet; import java.util.Properties; import javax.naming.InitialContext; import javax.naming.NamingException; import com.score.dao.CourseDAO; import com.sc... 阅读全文

posted @ 2009-01-24 23:43 cxccbv 阅读(541) 评论(0) 推荐(0)

多对多关联查询sql语句

摘要: 1.student,score,coure的实体关联定义如下: ------------------------------------------------------------------------------------------------ Student: @Entity@Table(name="tb_student")public class Student implement... 阅读全文

posted @ 2009-01-24 22:40 cxccbv 阅读(3989) 评论(0) 推荐(0)

EntityCURD操作的参数和返回值

摘要: 以下是netbeans根据实体自动生成的CURD模板:/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.medea.order.session; import com.medea.order.entity.Storeord... 阅读全文

posted @ 2009-01-24 19:42 cxccbv 阅读(261) 评论(0) 推荐(0)

在J2SE环境中使用JPA

摘要: 1.配置persistence.xml org.hibernate.ejb.HibernatePersistence 2.在J2SE环境中只能使用应用托管的EntityManager并且手工控制事务。public ... 阅读全文

posted @ 2009-01-24 10:19 cxccbv 阅读(1211) 评论(0) 推荐(0)

容器托管的EntityManager持久化上下文

摘要: 1.在容器中,EntityManager由容器来管理,它的事务由JTA来管理,当调用EntityManager时,容器首先检查是否处在持久化上下文中。 若是,则EntityManager将使用该持久化上下文和其关联的事务; 若没有关联任何持久化上下文,则创建一个新的持久化上下文,并将EntityManager与所在的事务关联。 2.容器托管的EntityManager的持久化上下文的作用范围有... 阅读全文

posted @ 2009-01-24 09:15 cxccbv 阅读(662) 评论(0) 推荐(0)

2009年1月23日

读书的技巧

摘要: 1.宏观把握总体,分清轻重,简单和高级内容 看书时可以先跳过高级内容和对基本掌握不大相关的内容 2.把书读厚-----不断提问和释疑(对比) 3.把书读薄-----总结和融会贯通 阅读全文

posted @ 2009-01-23 17:20 cxccbv 阅读(293) 评论(0) 推荐(0)

关联查询

摘要: 1.查询关联实体: (1)在一对一关连查询中,可以直接通过引用其关联属性来查询: select c.address from Customer c JPA实现者会根据实体映射的关系自动关联所对应的实体。 (2)在一对多中,可以通过IN select c.name,o from Customer c, in (c.orders) o 其中o为集合的别名。 ... 阅读全文

posted @ 2009-01-23 17:17 cxccbv 阅读(498) 评论(0) 推荐(0)

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 25 下一页

导航