`
zgdkik
  • 浏览: 6015 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
在查询方法设计上可以灵活的根据Criteria的特点来方便地进行查询条件的组装.Hibernate设计了CriteriaSpecification作为Criteria的父接口,下面提供了Criteria和DetachedCriteria. Criteria和DetachedCriteria的主要区别在于创建的形式不一样,Criteria是在线的,所以它是由HibernateSession进行创建的;而DetachedCriteria是离线的,创建时无需Session,DetachedCriteria提供了2个静态方法forClass(Class)或forEntityName(Name)进行 ...

[置顶] EJB 打EAR包

apache-ant-1.6.5jboss-4.2.1.GAjboss-annotations-ejb3.jarjboss-ejb3.jarjboss-ejb3x.jar最后三个包在jboss里有. publicinterface HelloWorld {public String sayHello(String name);}@Stateless@Remote ({HelloWorld.class})publicclass HelloWorldBean implements
public class BasicDAOImpl extends HibernateDaoSupport implements BasicDAO{              public List findByHql(String hql)throws DataAccessException{      System.out.println("1111111111111"+getHibernateTemplate());      List list = new ArrayList();       list = getHibernateTemplate().find( ...

[置顶] build fail

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project ssh: Compilation failure Unable to locate the Javac Compiler in:    D:/Program Files/MyEclipse 6.0/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JR ...
先看一张表: Create table test( Test_id integer not null auto_increment, gender Enum(MALE, FEMALE) ) 在hibernate的pojo中可以这样描述: 01.public final class TestVO { 02. 03.    private Integer id; 04. 05.public static enum Gender { 06.        MALE, FEMALE; 07.    } 08.    private Gende ...
{"total":2,"rows":["value":0,"department":{"depDesc":"技术部","depId":10,"depLevel":2,"depName":"产品与技术部","parentId":0,"path":"0.10.","version":null},"email&quo ...
我现在有一个XML文件,如下: <?xml version="1.0" encoding="UTF-8"?> <InstructionFileBean xmlns:n="http://www.hw.cn/pool" xmlns="http://www.hw.cn"> <InstructionBeans> <InstructionCode>liu</InstructionCode> <FunAndSerach> <code& ...
Global site tag (gtag.js) - Google Analytics