Hibernate hbm2ddl ant file paths?

You don't need Ant to do this. If you just run one g. , a dummy test or main), it'll run hbm2ddl for you.

You don't need Ant to do this. If you just run one g. , a dummy test or main), it'll run hbm2ddl for you.

Make sure the .hbm. Xml files are in your Ant classpath when you run. Perhaps that's the problem.(Didn't look closely enough at your build.

Xml to know; just throwing it out there. ) Here's a sample bernate config that works, including hbm2ddl. Pattern yours after this: com.mysql.jdbc.

Driver jdbc:mysql://localhost:3306/hibernate? AutoReconnect=true hibernate hibernate 1 org.hibernate.dialect. MySQL5InnoDBDialect true true org.hibernate.hql.classic.

ClassicQueryTranslatorFactory org.hibernate.cache. NoCacheProvider false false false create-drop thread.

Ok I didn't provide my whole hibernate.cfg.xml. Do I always need hbm2ddl. Auto property?

– ZeC Sep 16 '10 at 10:46 No, not if you don't need it. I usually let it create the schema from objects and then comment it out. – duffymo Sep 16 '10 at 12:13.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions