Hypernet hauv Java yog dab tsi?
Hypernet hauv Java yog dab tsi?

Video: Hypernet hauv Java yog dab tsi?

Video: Hypernet hauv Java yog dab tsi?
Video: Solo Grandmaster Nightfall - Hypernet Current [Destiny 2 Season of Defiance] 2024, Hlis ntuj nqeg
Anonim

Platform: Java Virtual Machine

Hauv qhov no, vim li cas Hibernate moj khaum siv hauv Java?

Hibernate yog a Java framework uas simplifies txoj kev loj hlob ntawm Java daim ntawv thov kev cuam tshuam nrog database. Nws yog qhov chaw qhib, lub teeb yuag, ORM (Object Relational Mapping) cov cuab yeej. Hibernate siv cov kev qhia tshwj xeeb ntawm JPA ( Java Persistence API) rau cov ntaub ntawv persistence.

Tsis tas li ntawd, vim li cas Hibernate zoo dua JDBC? Hibernate muab pob tshab persistence thiab tus tsim tawm tsis tas yuav sau cov lej qhia meej rau daim ntawv qhia cov ntxhuav cov ntaub ntawv tuples rau cov khoom siv thaum muaj kev cuam tshuam nrog RDBMS. Nrog JDBC qhov kev hloov dua siab tshiab no yuav tsum tau saib xyuas los ntawm tus tsim tawm manually nrog cov kab ntawm cov cai. Hibernate muab daim ntawv qhia no nws tus kheej.

Raws li qhov sib txawv ntawm JPA thiab JDBC yog dab tsi?

Main Qhov sib txawv ntawm JPA thiab JDBC yog theem ntawm abstraction. JDBC yog tus qauv qis rau kev sib cuam tshuam nrog databases. JPA tso cai rau koj siv tus qauv khoom hauv koj daim ntawv thov uas tuaj yeem ua rau koj lub neej yooj yim dua. JDBC tso cai rau koj ua ntau yam nrog Database ncaj qha, tab sis nws yuav tsum tau saib xyuas ntxiv.

ORM cuab yeej hauv Java yog dab tsi?

ORM sawv cev rau Object-Relational Mapping ( ORM ) yog cov txheej txheem programming rau kev hloov cov ntaub ntawv ntawm kev sib raug zoo databases thiab cov khoom taw qhia cov lus programming xws li Java , C#, thiab lwm yam. Hides cov ntsiab lus ntawm SQL queries los ntawm OO logic. 3. Raws li JDBC 'hauv qab hood.

Pom zoo: