Hibernate中各个JAR包的用途
原文链接:http://hi.baidu.com/jackfrued/blog/item/d11e5922d101ffaf4623e804.html
最基本的Hibernate3.3.2之 JAR包(必要):
包名 |
位置 |
用途 |
hibernate3.jar |
/hibernate |
核心JAR包 |
antlr.jar |
/hibernate/lib/required |
Another Tool for Language Recognition,可以构造语言识别器,解析HQL需要 |
commons-collections.jar |
/hibernate/lib/required |
包含了一些Apache开发的集合类,功能比java.util.*强大 |
dom4j.jar |
/hibernate/lib/required |
越来越多的Java软件都在使用dom4j来操作XML,Hibernate也不例外 |
javassist.jar |
/hibernate/lib/required |
操作字节码,跟cglib相关 |
jta.jar |
/hibernate/lib/required |
定义JTA规范的JAR包,当Hibernate使用JTA的时候需要 |
slf4j.jar |
/hibernate/lib/required |
整合各种日志框架的工具 |
slf4j-nop.jar |
/slf4j |
包含了对slf4j.jar的实现类 |
注意:slf4.jar和slf4j-nop.jar之间的版本需要匹配,如果Hibernate中使用早期的slf4j.jar,可以从slf4j官方网站下载新的JAR包将其置换掉
如果要使用Annotation,还需要下面的JAR包:
包名 |
位置 |
用途 |
hibernate-annotations.jar |
/hibernate-annotations |
使用Hibernate Annotation的核心JAR包 |
ejb3-persistence.jar |
/hibernate-annotations/lib |
实体类中使用的注解都是在这个JAR包中定义的 |
hibernate-commons-annotations.jar |
/hibernate-annotations/lib |
|
使用javax.persistence下的Annotation可以不依赖Hibernate的JAR包,这样的话可以切换到其他的ORM框架
如果要使用log4j,则需要添加相关的JAR包:
包名 |
位置 |
用途 |
log4j.jar |
很多框架中都有 |
生成用户定制日志 |
slf4j-log4j.jar |
/slf4j |
将slf4j和log4j关联起来的JAR包 |
当然别忘记了在类路径下放log4j的配置文件哦
2022年9月02日 06:18
Government of Bangladesh, Secondary and Higher Secondary Education Board has successfully completed those Junior School Certificate and Junior Dakil (Grade-8) annual final examination tests between 2nd to 11th November 2022 at all selected centers across the country along with Dhaka Division, Junior Certificate Result Dhaka Board and JSC & JDC Exams 2022 also completed successfully at all district schools of the Dhaka Board. According to the reports, there are a huge number of students are appeared for this Grade 8th standard terminal exams under Dhaka division and they are waiting for JSC Result 2022 Dhaka Board, right now the Secondary and Higher Secondary Education Board Dhaka has conducted the evaluation of answer sheet scripts to calculate subject wise and total marks of the student to announce JSC Result 2022 Dhaka Board.