resource:
- From JavaWorrd Hibernate入門
- hibernate-distribution-3.3.1.GAi
1.required lib
- antlr-2.7.6.jar ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions.
探索Antlr(Antlr 3.0更新版) -转“梦想风暴” - commons-collections-3.1.jar It added many powerful data structures that accelerate development of most significant Java applications. Since that time it has become the recognised standard for collection handling in Java.
- dom4j-1.6.1.jar dom4j is an easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP.
- javassist-3.4.GA.jar Javassist (Java Programming Assist ant) makes Java bytecode manipulation simple
- jta-1.1.jar Java Transaction API (JTA) specifies standard Java interfaces between a transaction manager and the parties involved in a distributed transaction system: the resource manager, the application server, and the transactional applications.
- slf4j-api-1.5.2.jar Simple Logging Facade for Java
2.Demo
最简单的例子,只一个实体,Hibernate包自带的例子.源码
3.