1) No, the annotations replace the Hibernate hbm.xml files. Just include the compiled class files in your classpath.
2) Yes, you definetely can still use hbm2ddl. You need the hibernate-tools stuff.
wadeyhan wrote:
I am very new to hibernate annotations. I have some questions that I do not have any idea.
1) If we use hibernate annotations, do we still need to create the mapping files with some tool? If yes, what tool should we use? If use ant, what task is it?
2) If we use hibernate annotations, do we still can use hbm2ddl?
Thanks.
Wade