down下来Hibernate3的源码看看,发现org.hibernate.hql.antlr包下是空的,看了文档(
A special package for ANTLR-generated parser classes.
NOTE: The classes in this package are generated from the ANTLR grammar files, do not register them into version control.
)才明白,原来他的代码是由Antlr产生的。按照要求
A special package for ANTLR-generated parser classes.
NOTE: The classes in this package are generated from the ANTLR grammar files, do not register them into version control.
)才明白,原来他的代码是由Antlr产生的。按照要求
cd %hibernate_HOME%
java -cp ..\lib\antlr-2.7.5H3.jar antlr.Tool hql.g
java -cp ..\lib\antlr-2.7.5H3.jar antlr.Tool hql-sql.g
java -cp ..\lib\antlr-2.7.5H3.jar antlr.Tool sql-gen.g