ǰλ: ҳ > JSP > ΪʲôҪѧϰHibernate

ΪʲôҪѧϰHibernate

ĺܶĿĹУһֱһδңǾdz־òĿ־òĿһ˵ҪôCMPҪôJDBCDAO CMPͲ˵ˣ˵һʧܵʵJDBC+DAOҲںܶѣҺѹϵ¼ӳ䵽־öĹϵҪڶĹϵ޷ֱӳ䵽Գ־öӳһӳ־öпǶӳһ־ö󣬸пܵDZijЩֶӳ䵽һ־ö󣬵һЩֶӳ䵽ij־öϡҼʹЩⶼˣҲֱӰնķʽԳ־öPỌΪ1Nϵij־öIJѯʵ1+nζݿSQLһʧܵij־òƣijܶ־öPOһѯ5n1 sqlٶIJˣ󲻵ò޸ĵײƣȫ˶ƣȫǰձֶνв

dzܣΪϵͳǴƣϵͳԶµģϸƽ׶ˣ־òӳƣòԵ޸Ʒֻص˰չ̽б̵·dz⡣

Ҷ˼˺ܾãʶʵһܾ⣺͹ϵӳ⡣ʵԴOOPԺ󣬾ʹˣԲϵݿƣöݿ⣬ʵϹϵݿⲢûб̭ǾֻϲӦòҽʱҪʵһ ORMƷ

뵽ORMJDOJDOƷ׼ѧϰһ£оһʱ֮ҷҶJDOdzʧԭ£

1 JDOûһõĿԴʵ֣õIJƷҵƷڹûۺͼ֧֡JDOֻѧϰ֮ãܰʵĿУĻͻʱ򣬻Ҫ㻹ҪȥһƷڹûм֧֣˳־ò⣬ҲˣԼʳ;ȥ⣬ΪͻܴӦ

2JDOһװͼһij־òܣǻܲƣJDO оȽϱأܶʽ˾÷͹Ź֡˳Աѧϰͱ̵ĸҷװ̫һصһֱϢdzѣ׼ȷĶλ󾿾װԽᣬԽ׶λԽ׽װԽأԽӣԽҲԭCMPһܺõӣ˴󣬵dzѺ鷳

3JDOı׼ܲƣشȱݡҪPOPM൱ HibernateSessionڣǸdzص⣬ɱ̵ʱдVOĿˣһشȱǾ̬ POJOEnhancerڶ̬Enhance޷͵ԣ̺͵dzÿζҪֹһ߶POJO Enhance⻹һЩȱݣJDOQLƣӳϵıﲻǿȵȡ

4JDOƷķѡҲȽأJDO1.0׼ȱݣJDO2.0׼ңңڣJDOΪܹھӱôײԺϵ֮⣬ҪͻͱԼIJƷɫô1.0׼ȱøǷӵ̨ÿ̶ԼĽ׼ȱݣȻȴJDO Ʒʵϵķѡַصʲô̶ȣҿԼ򵥾ٸӣдõPOJOһJDOEnhancerEnhanceԺõ POһJDOƷܲUnixķѣǶƴ뼶IJݣֻCԴ뼶ݡڵJDOҲƣApp ServerIJһһWeblogicϿõEJBֲWebsphereһҪ½á

ĿеORMµص㣺

1ԴѵLicenseҿҪʱоԴ룬дԴ룬йܵĶơ

2װิӵ⣬ףҲԱĸ

3пչԣAPIţܲõʱ򣬿Լչ

4߻ԾƷȶķչϡ

JDOԺҸԭȺųTopLinkCocoBaseCastorȣѡApache OJBHibernate

OJBųһΪĵ̫򵥣̫٣ΪOJBƻһ汾ȫ֧JDOAPIش䶯ֽ׶ѧϰOJBǸ󣬵APIȶԺѧϰ١

HibernateķǺżȻ飬ֻڱᵽJDOIJƷУѣҿʼоHibernate֮ҷҵORMˡ

Hibernate ȫᵽı׼֮⣬ҲJDOȱݣҷʽ֮̾HibernateĵҲǷdzdzɫĵط HibernateĹܽô򵥣ʵһ־òƵʵľܽᣬĵӣĵܽȫƵĽᾧİHibernateĸоǣHibernateסˣҶԳ־òƵľ鶼һ飬ǰɴûоó־òƻôѧʣҲɴ˸оGavinһţˡ

ȻѡHibernateõԭHibernateһܹȫȫԦ˵HibernateԴdz٣дķdzֵܾ࣬ͦģôٵԴܹʵôĹܣǸ漣 HibernateԴֵĺ򵥣Դ׶һĵûн⣬ĵᵽҸ㲻ĵطҾȥԴңеⶼȻʣҶHibernateԭϸڸرHibernateԼдĴһ֪ôдHibernateЧߣʡڴ棬˴󣬺֪ʲôط⣬ôHibernateرģܹԦЩڸӵܾ͸ӵĺܣټϲԴҲ֪ô¡
ܸȤ: