A brief introduction to the Hibernate Jar Library

Source: Internet
Author: User

1.ANTLR--ANTLR (another Tool for Language recognition) parser, which provides a syntax description framework including java,c# and C + +

Hibernate uses it to achieve hql? to SQL conversion

Error condition: Antlr-*.jar,hibernate not added in project does not execute HQL statement

and will report noclassdeffounderror:antlr/antlrexception errors.

2.cglib hibernate uses it to implement the dynamic generation of PO (Project object) bytecode, which can be run while extending Java classes and implementing Java interfaces is a powerful

, high-performance, high-quality Code Generation Class library (in the Hibernate3.3 version, the bytecode enhancement package used by default is Javassist. Cglib is used by default in 3.2.6)

--cglib byte-code interpreter

3.asm--ASM is a Java bytecode manipulation framework. It can modify existing classes or dynamically generate classes in binary form. ASM can directly produce binary

class file, or you can change the behavior of classes dynamically before the class is loaded into the Java virtual machine. When ASM reads information from a class file, it can change the class behavior, parse the class information, and even be able to root

A new class is generated according to user requirements. --byte code library

ASM and other bytecode frameworks, such as BCEL and SERP, provide similar functionality.

4.asm-attrs--asm byte code library

5.commons-logging.jar--Log function The package itself contains a simple Logger, but the functionality is weak. When it's running, it's going to look in classpath first.

Log4j, if there is, use log4j, if not, find JDK1.4 belt java.util.logging, if also can not find the Simpllogger. It is recommended to use the log4j jar package.

6.commons-collections.jar--Collection class, one of the Apache Commons packages, contains some Apache-developed collection classes that are more powerful than java.util.*

Error condition: Noclassdeffounderror:org/apache/commons/collections/sequencedhashmap

7.DOM4J--xml Configuration and mapping interpreter is a Java XML API similar to Jdom, used to read and write XML files, dom4j is a very good Java XML API,

Features excellent performance, powerful and easy to use, and it is also an open source software.

Error condition: noclassdeffounderror:org/dom4j/documentexception

8.JTA-The standard JTA API. The Java Transaction API (JTA) specification is a package that specifies the standard between transactional and transactional and distributed transaction processing systems.

Java interfaces, including: resource management, application services, and transactional applications. JTA transactions are more powerful than JDBC transactions.

Error condition: noclassdeffounderror:javax/transaction/synchronization

9.hibernate*.jar--The session,query,transaction used in the core library are located in this jar file.

Error condition: unresolvedcompilation problems

Rookie one, I hope you have a lot of advice and comments

                

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.